[ 
https://issues.apache.org/jira/browse/OFBIZ-9301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aditya Sharma updated OFBIZ-9301:
---------------------------------
    Attachment: OFBIZ-9301.patch

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.

References:

https://lucene.apache.org/core/5_4_0/core/deprecated-list.html#constructor

BooleanQuery Class documentation:
https://lucene.apache.org/core/5_4_0/core/org/apache/lucene/search/BooleanQuery.html

BooleanQuery.Builder Class documentation:
https://lucene.apache.org/core/5_4_0/core/org/apache/lucene/search/BooleanQuery.Builder.html

> CMS shows error screen on clicking Find button
> ----------------------------------------------
>
>                 Key: OFBIZ-9301
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9301
>             Project: OFBiz
>          Issue Type: Bug
>          Components: content
>            Reporter: Aditya Sharma
>            Assignee: Aditya Sharma
>         Attachments: OFBIZ-9301.patch, screenshot-1.png
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to