Krishan created LUCENE-9542:
-------------------------------

             Summary: Score returned in search request is original score and 
not reranked score
                 Key: LUCENE-9542
                 URL: https://issues.apache.org/jira/browse/LUCENE-9542
             Project: Lucene - Core
          Issue Type: Bug
    Affects Versions: 8.0
            Reporter: Krishan


Score returned in search request is original score and not reranked score post 
the changes in https://issues.apache.org/jira/browse/LUCENE-8412

Specifically - 

if (cmd.getSort() != null && query instanceof RankQuery == false && 
(cmd.getFlags() & GET_SCORES) != 0) {

    TopFieldCollector.populateScores(topDocs.scoreDocs, this, query);

}

in SolrIndexSearcher.java recomputes the score but outputs only the original 
score and not the reranked score.

 

The issue is cmd.getQuery() is a type of RankQuery but the "query" variable is 
a boolean query and probably replacing query with cmd.getQuery() should be the 
right fix for this so that the score is not overriden for rerank queries

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to