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

Add multiply/replace options to ReRank query parser

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 9.1.1
    • 9.2
    • search
    • None

    Description

      I noticed the ReRank query parser adds the score from the reRankQuery to the original score. This means that existing edismax boost functions can't easily be migrated to use reranking instead, and reranking functions have the same issue as is noted at https://solr.apache.org/guide/solr/latest/query-guide/dismax-query-parser.html#bq-bf-shortcomings.

      In https://github.com/apache/solr/pull/1431 I've added a reRankOperator=multiply option to the ReRank parser which enables reranking functions to multiply the score instead. A reRankOperator=replace option is available too, enabling the reranked scores to be independent of the original scores.

      Attachments

        Activity

          People

            andywebb Andy Webb
            andywebb1975 Andy Webb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 5h 40m
                5h 40m