hellosunil opened a new issue, #14769:
URL: https://github.com/apache/lucene/issues/14769

   ### Description
   
   Hello, I have a question about the RRF method in TopDocs and would like to 
raise this issue.
   
   In the current code:
   
   `for (int i = 0; i < topDoc.scoreDocs.length; ++i) {
     ScoreDoc scoreDoc = topDoc.scoreDocs[i];
     int rank = i + 1;
     double rrfScoreContribution = 1d / Math.addExact(k, rank);
     rrfScore.compute(
         new ShardIndexAndDoc(scoreDoc.shardIndex, scoreDoc.doc),
         (key, score) -> (score == null ? 0 : score) + rrfScoreContribution);
   }`
   
   The rank is unconditionally incremented by 1 (i + 1) based on position. 
However, when all documents have identical scores (such as search results on 
keyword fields), this approach could lead to incorrect RRF scores.
   
   I'm curious about why documents with identical scores are not assigned the 
same rank. Shouldn't tied scores receive equal ranking treatment?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to