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

edismax ignores explicit operators when literal colon is found

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6, 4.0-ALPHA
    • Component/s: query parsers
    • Labels:
      None

      Description

      Using the 3.5 example this query...

      q = bogus:xxx AND text_t:yak
      http://localhost:8983/solr/select/?debugQuery=true&qf=a_t+b_t&defType=edismax&mm=0&q=bogus:xxx+AND+text_t:yak

      parses as...

      +(DisjunctionMaxQuery((a_t:bogus:xxx | b_t:bogus:xxx)) DisjunctionMaxQuery((a_t:and | b_t:and)) text_t:yak)
      

      (Note that "AND" is considered a term and is searched for in the qf fields)

      But this query...
      q = foo_s:xxx AND text_t:yak
      http://localhost:8983/solr/select/?debugQuery=true&qf=a_t+b_t&defType=edismax&mm=0&q=foo_s:xxx+AND+text_t:yak

      parses correctly treating AND as an explicit operator...

      +(+foo_s:xxx +text_t:yak)
      

      (this problem also seems to affect trunk circa 2012-03-20)

        Attachments

        1. SOLR-3261.patch
          5 kB
          Hoss Man
        2. SOLR-3261.patch
          4 kB
          Juan Grande

          Issue Links

            Activity

              People

              • Assignee:
                juangrande Juan Grande
                Reporter:
                hossman Hoss Man
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: