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

BooleanQueries are not parsed correctly with the flexible query parser

Details

    • 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. test-patch.txt
          3 kB
          Daniel Truemper
        2. LUCENE-4109.patch
          14 kB
          Karsten R.
        3. LUCENE-4109.patch
          16 kB
          Robert Muir
        4. LUCENE-4109_trunk_rev1366771.patch
          86 kB
          Karsten R.
        5. LUCENE-4109.patch
          86 kB
          Robert Muir
        6. LUCENE-4109_branches_lucene_solr_3_6_rev1367055.patch
          7 kB
          Karsten R.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment