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

BooleanQueries are not parsed correctly with the flexible query parser

    Details

    • Lucene Fields:
      New

      Description

      Hi,

      I just found another bug in the flexible query parser (together with Robert Muir, yay!).

      The following query string works in the standard query parser:

      (field:[1 TO *] AND field:[* TO 2]) AND field2:z
      

      yields

      +(+field:[1 TO *] +field:[* TO 2]) +field2:z
      

      The flexible query parser though yields:

      +(field:[1 TO *] field:[* TO 2]) +field2:z
      

      Test patch is attached (from Robert actually).

      I don't know if it affects earlier versions than 3.5.

        Attachments

        1. LUCENE-4109_branches_lucene_solr_3_6_rev1367055.patch
          7 kB
          Karsten R.
        2. LUCENE-4109_trunk_rev1366771.patch
          86 kB
          Karsten R.
        3. LUCENE-4109.patch
          86 kB
          Robert Muir
        4. LUCENE-4109.patch
          16 kB
          Robert Muir
        5. LUCENE-4109.patch
          14 kB
          Karsten R.
        6. test-patch.txt
          3 kB
          Daniel Truemper

          Activity

            People

            • Assignee:
              rcmuir Robert Muir
              Reporter:
              truemped Daniel Truemper
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: