Search syntax is handled incorrectly for AND operator
Description
Environment
Tomcat 7, MySQL 5
Activity
Show:

MikaMMarch 13, 2013 at 12:24 PM
The inputed query is being parsed by Lucene.

Jan TošovskýFebruary 8, 2012 at 3:14 AM
Sorry, there should be "title AND page" in my example (without quotes). The same result is also for +title +page
Won't Fix
Details
Assignee
MikaMMikaMReporter
Jan TošovskýJan TošovskýComponents
Fix versions
Affects versions
Priority
Medium
Details
Details
Assignee

Reporter

Components
Fix versions
Affects versions
Priority
Zendesk Support
Linked Tickets
Zendesk Support
Linked Tickets
Zendesk Support

Linked Tickets
Created February 8, 2012 at 2:53 AM
Updated June 24, 2023 at 3:49 PM
Resolved March 13, 2013 at 12:24 PM
When the following query (without quotes) is entered "title page", the incorrect search query is built:
+assetCategoryNames:title +assetCategoryNames:page +assetTagNames:title +assetTagNames:page ...(skipped)... +userName:title +userName:page
Of course, nothing is found as all these conditions must be met !!!
This can be tested on liferay.com
I'd expect something like this:
(+assetCategoryNames:title +assetCategoryNames:page) (+assetTagNames:title +assetTagNames:page) ... (+userName:title +userName:page)
This grouping would ensure that only partial content is evaluated.