msfroh opened a new pull request, #13987:
URL: https://github.com/apache/lucene/pull/13987

   ### Description
   
   I noticed that ScoreCachingWrappingScorer never updates lastDoc, so it's 
always -1. Technically, it's probably fine, since it still ends up returning 
the same score for multiple score() calls between collect calls, but I think 
this is the intended logic. (In particular, if the same doc was somehow 
collected multiple times, then the score would get recalculated.)


-- 
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

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