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

QueryParser changes OR clausule to AND

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.2.1
    • Fix Version/s: None
    • Component/s: core/queryparser
    • Labels:
      None
    • Lucene Fields:
      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

            • Assignee:
              Unassigned
              Reporter:
              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: