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

edismax with sow=false fails to create dismax-per-term queries when any field is boosted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.5.1, 6.6, 7.0
    • None
    • None

    Description

      When sow=false, the edismax query parser creates dismax-per-field queries when field analysis is different enough that query structures differ per field (stopwords in one field only, e.g.). (By contrast, dismax-per-term queries are produced when sow=true or when query structures are the same across all fields.)

      However, the code to determine whether per-field query structures differed wasn't aware of boost queries. As a result, when sow=false and boost are specified for at least one field (e.g. q={!edismax sow=false}text&qf=fieldA^2+fieldB^4), dismax-per-field queries are always produced, even when per-field query structures are equivalent.

      Attachments

        1. SOLR-10527.patch
          7 kB
          Steven Rowe

        Activity

          People

            sarowe Steven Rowe
            sarowe Steven Rowe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: