Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-78470

Solr advanced query using OR requires parenthesis

    Details

    • Fix Priority:
      2

      Description

      Steps to reproduce:

      1. Create wiki pages with the following data:
        Wiki1: title: liferay content: wiki1
        Wiki2: title: portal content: wiki2
        Wiki3: title: java content: wiki3
        Wiki4: title: wiki4 content: liferay portal java lucene
        Wiki5: title: wiki5 content: liferay portal java
        
      2. Configure Search Portlet -> Other Settings > Enable "Use Advanced Search Syntax"
      3. Search for title: liferay OR content: liferay

      Expected Result: Search should return 3 results - (Wiki1, Wiki4, Wiki5)

      Actual Result: Search only returns the 3 results if the query is surrounded in parenthesis - (title: liferay OR content: liferay)

      Reproduced on:
      Tomcat 8.0.32 + MySQL 5.7.21 + Solr 5.5.4
      Portal Master Git SHA: b1f5561bcbf688a2cf7c7f6ec11a00b725bf2c99
      Needs to be retested on 7.0.x once LPS-72589 is merged.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Days since last comment:
                  48 weeks, 2 days ago

                  Packages

                  Version Package