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

configurable relevance impact of phrases for edismax

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.9
    • Fix Version/s: None
    • Component/s: query parsers
    • Labels:

      Description

      Currently solr has a tie breaker parameter which control how to aggregate relevance score for search hits.

      But score for fields (pf, pf2, pf3) are always summed up.

      The goal of the patch is to wrap phrase clauses into single dismax clause instead of multipe ones

      Before patch
      +(
      DisjunctionMaxQuery((Body:james | Title:james)~tie_breaker)
      DisjunctionMaxQuery((Body:kirk | Title:kirk)~tie_breaker))
      )
      DisjunctionMaxQuery((Body:"james kirk")~tie_breaker)
      DisjunctionMaxQuery((Title:"james kirk")~tie_breaker)

      after patch
      +(
      DisjunctionMaxQuery((Body:james | Title:james)~tie_breaker)
      DisjunctionMaxQuery((Body:kirk | Title:kirk)~tie_breaker))
      )
      DisjunctionMaxQuery((Body:"james kirk" | Title:"james kirk") ~tie_breaker)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                alexey_kozhemiakin Alexey Kozhemiakin
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: