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

edismax ignores explicit operators when literal colon is found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.6, 4.0-ALPHA
    • query parsers
    • 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
          Chris M. Hostetter
        2. SOLR-3261.patch
          4 kB
          Juan Grande

        Issue Links

          Activity

            People

              juangrande Juan Grande
              hossman Chris M. Hostetter
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: