Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4333

edismax query with escaped colon ignores AND and OR

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.4, 6.0
    • Component/s: query parsers
    • Labels:
      None
    • Environment:

      tomcat 7.34
      java 7u11
      windows 2008R2

      Description

      When I use the edismax query handler with qf=samenvatting and have a query of the form

      a\:b AND cde
      

      then the parsedquery ends up as:

      (+(DisjunctionMaxQuery((samenvatting:"a b")) DisjunctionMaxQuery((samenvatting:and)) DisjunctionMaxQuery((samenvatting:cde))))/no_coord
      

      note that the AND operator is ignored, and a search for the word AND is performed.
      As far as I've seen it doesn't matter if the part before the \: is a real field or not.

        Attachments

        1. SOLR-4333.patch
          0.8 kB
          James Dyer
        2. SOLR-4333.patch
          0.8 kB
          James Dyer
        3. SOLR-4333.patch
          2 kB
          James Dyer

          Activity

            People

            • Assignee:
              jdyer James Dyer
              Reporter:
              rjvdboon Robert J. van der Boon
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: