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

BooleanQueryImpl is based on Lucene's "org.apache.lucene.search.BooleanQuery()". But it should be based on something that doesnt modify the query.

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 5.1.2, 5.2.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Branch Version/s:
      5.2.x, 5.1.x
    • Backported to Branch:
      Committed
    • Liferay Contributor's Agreement:
      Accept

      Description

      Currently, BooleanQueryImpl is based on "org.apache.lucene.search.BooleanQuery()".

      This is fine for Lucene (and Solr), but for other Search engines (like FAST), by the time that classes get the Query object, it has already been modified by Lucene. For example, when adding terms to the query, the Lucene parser will strip out all stop words. So when a user searches for:

      "Save the whales"

      by the time a class that implements IndexSearcher gets the Query object, Lucene will have already removed all stop words, including "the". As a result, the query that the other Search Plugin gets would be:

      "Save whales"

      This is expected behavior for Lucene, but other Search Engines may handle stop words differently. (see http://issues.liferay.com/browse/LPS-4041 )

      Proposed Solution:

      • Currently BooleanQueryImpl.java is implemented with a Lucene class at the heart of it. Change this by swapping it out with our own implementation.. or instead of swapped it out.. just add our own logic alongside of the Lucene one.. and maintain both Lucene and our own implementation.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.han Michael Han (Inactive)
              Reporter:
              scott.lee Scott Lee
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                11 years, 28 weeks, 1 day ago

                  Packages

                  Version Package