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

rq/rerank does not properly adjust maxScore

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      When the rq param is used to re-rank top scoring documents, the maxScore of the result set is not updated accordingly...

      $ bin/solr -e techproducts
      ...
      $ curl 'http://localhost:8983/solr/techproducts/select?fl=id,score&omitHeader=true' -F 'q=id:IW-02'
      {
        "response":{"numFound":1,"start":0,"maxScore":1.4050193,"numFoundExact":true,"docs":[
            {
              "id":"IW-02",
              "score":1.4050193}]
        }}
      $ curl 'http://localhost:8983/solr/techproducts/select?fl=id,score&omitHeader=true' -F 'q=id:IW-02' -F 'rq={!rerank reRankQuery=$x}' -F 'x=manu:Belkin'
      {
        "response":{"numFound":1,"start":0,"maxScore":1.4050193,"numFoundExact":true,"docs":[
            {
              "id":"IW-02",
              "score":3.9578552}]
        }}
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            hossman Chris M. Hostetter

            Dates

              Created:
              Updated:

              Slack

                Issue deployment