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

edismax query with escaped colon ignores AND and OR

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0
    • 4.4, 6.0
    • query parsers
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: