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

configurable relevance impact of phrases for edismax

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 4.9
    • None
    • query parsers

    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

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

              Dates

                Created:
                Updated:
                Resolved: