Commit Graph
7 Commits
Author SHA1 Message Date
Shi Jinghai 37d7c585fc Fixed: Update Apache Solr/Lucene to release 6.2.1
OFBIZ-8316

Updated Lucene from 6.2.1 to 6.5.1 and the point fields generated by Lucene are ok now for Solr component.

Thanks: Cao Pengan for the patch and Jacques, Michael for the comments and reviews.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1794770 13f79535-47bb-0310-9956-ffa450edef68
2017-05-10 23:58:31 +00:00
Jacques Le Roux 81f93c5f78 Fixed: CMS shows error screen on Product Search
(OFBIZ-9308)

Steps to regenerate:
1. Go to Content component 
    https://localhost:8443/content/control/main
2. Click on CMS tab directing to 
    https://localhost:8443/content/control/CMSContentFind
3. Click on Search Products subtab directing to 
    https://localhost:8443/content/control/ProductSearch
4. Provide a Lucene Query and Click submit.
5. Screen renders with ScreenRenderingException

Problem:
1. "ProductSearch" request directs to "ProductSearch" screen in 
    LuceneScreens.xml.
2. On ProductSearch screen, "SearchProducts.groovy" script prepares and hits a 
    search query to Lucene.
3. "BooleanQuery" class is used to match documents with other boolean query 
    combinations.
4. BooleanQuery object is initialised with Its default constructor.
5. With Lucene 5.4.0, this constructor is deprecated.
OFBiz migrated to Lucene 6.3.1: OFBIZ-8316

Solution:
From Lucene 5.4.0 default constructor is deprecated and a new inner class 
Builder is created for queries.

Refer OFBIZ-9301 for detailed explanation.

Thanks: Aditya

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1790933 13f79535-47bb-0310-9956-ffa450edef68
2017-04-11 07:34:15 +00:00
Jacques Le Roux befd697f99 Fixed: CMS shows error screen on clicking Find button
(OFBIZ-9301)

Steps to regenerate :
1. Log in to Content component
2. Go to the CMS tab or directly go to  
	https://localhost:8443/content/control/CMSContentFind
3. Click on "Find" submenu or directly go to 
	https://localhost:8443/content/control/AdminSearch
4. Screen renders with ScreenRenderingException

Problem:
1. "AdminSearch" request directs to "AdminSearch" screen in LuceneScreens.xml.
2. On AdminSearch screen, "Search.groovy" script prepares and hits a search 
	query to Lucene.
3. "BooleanQuery" class is used to match documents with other boolean query 
	combinations.
4. BooleanQuery object is initialised with Its default constructor.
5. With Lucene 5.4.0, this constructor is deprecated.
	OFBiz migrated to Lucene 6.3.1: OFBIZ-8316

Solution:
From Lucene 5.4.0 default constructor is deprecated and a new inner class 
Builder is created for queries.

jleroux: I sorted the imports by hand, and added missing parenthesis at .build

Thanks: Aditya 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1790664 13f79535-47bb-0310-9956-ffa450edef68
2017-04-08 08:26:19 +00:00
Arun Patidar 8bb8f78872 Improved: Removed semicolon from all Groovy files of all components.
(OFBIZ-8652)

Thanks: Rohit Koushal, Jacques Le Roux and Rishi Solanki for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1767764 13f79535-47bb-0310-9956-ffa450edef68
2016-11-02 19:09:13 +00:00
Michael Brohl 2887d0c9c6 Improved: Lucene : Remove unused imports from groovy files for code optimization.
(OFBIZ-8033)

Thanks: Ankit Joshi for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1761277 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 20:42:37 +00:00
Deepak Dixit 8f3141cd46 (OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Deepak Dixit b498b235f7 (OFBIZ-7241) Relocate .groovy files in the specialpurpose/lucene component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1747793 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 19:54:37 +00:00