cpoerschke opened a new pull request #474:
URL: https://github.com/apache/solr/pull/474


   _(Keeping this PR as "draft" whilst the "keep or not keep" discussion in 
SOLR-15873 is underway and also because this PR includes the #470 changes.)_
   
   https://issues.apache.org/jira/browse/SOLR-15873
   
   The Lucene `Rescorer.rescore` API signature takes three arguments: 
`rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN)`
   
   The Solr `ReRankCollector` caps the number of documents that are passed to 
the `rescore` method so that `topN == firstPassTopDocs.scoreDocs.length` is 
always the case.
   
   This pull request introduces a `ReRankRescorer` class for this specific use 
case i.e. a two arguments API signature variant `rescore(IndexSearcher 
searcher, TopDocs firstPassTopDocs)` with non-support of the three argument 
variant.
   
   The motivation is to subsequently simplify the  `LTR[Interleaving]Rescorer` 
logic by making use of the `topN == firstPassTopDocs.scoreDocs.length` 
condition.


-- 
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...@solr.apache.org

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



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

Reply via email to