Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7483

QueryParser changes OR clausule to AND

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 6.2.1
    • None
    • core/queryparser
    • None
    • New

    Description

      QueryParser incorrectly parses the expression t1 AND t2 OR t3 AND t4 as
      (+t1 +t2 +t3 +t4) while t1 AND t2 AND t3 AND t4 produces the same result.

      The expected result for expression t1 AND t2 OR t3 AND t4 is (+t1 +t2) (+t3 +t4).

      This occurs using StandardQueryParser or classic.QueryParser.

      Attachments

        Activity

          People

            Unassigned Unassigned
            julio.melo@gmail.com Júlio César e Melo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: