Solr
  1. Solr
  2. SOLR-2988

edismax does not respect pf params using non-tokenized fields

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.5
    • Fix Version/s: None
    • Component/s: query parsers
    • Labels:
      None

      Description

      for reasons i don't fully understand, edismax ignores fields in the pf param if those fields are non-tokenized.

      Consider this example dismax query in Solr 3.5...

      http://localhost:8983/solr/select/?debugQuery=true&defType=dismax&qf=name^5+features^3&pf=features^2+cat^4&q=hard+drive
      <str name="parsedquery">
        +((DisjunctionMaxQuery((features:hard^3.0 | name:hard^5.0))
           DisjunctionMaxQuery((features:drive^3.0 | name:drive^5.0))
          )~2)
         DisjunctionMaxQuery((features:"hard drive"^2.0 | cat:hard drive^4.0))
      

      ...compared to the equivalent edismax query...

      http://localhost:8983/solr/select/?debugQuery=true&defType=edismax&qf=name^5+features^3&pf=features^2+cat^4&q=hard+drive
      <str name="parsedquery">
        +((DisjunctionMaxQuery((features:hard^3.0 | name:hard^5.0))
           DisjunctionMaxQuery((features:drive^3.0 | name:drive^5.0))
          )~2)
         DisjunctionMaxQuery((features:"hard drive"^2.0))
      

        Activity

        Hoss Man created issue -
        Jan Høydahl made changes -
        Field Original Value New Value
        Component/s query parsers [ 12317802 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Hoss Man
          • Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:

              Development