kkewwei commented on code in PR #16515:
URL: https://github.com/apache/lucene/pull/16515#discussion_r3949989639
##########
lucene/core/src/test/org/apache/lucene/search/TestMaxScoreBulkScorer.java:
##########
@@ -1446,6 +1482,14 @@ public float getMaxScore(int upTo) throws IOException {
minGetMaxScoreUpTo[0] = Math.min(minGetMaxScoreUpTo[0],
upTo);
return in.getMaxScore(upTo);
}
+
+ @Override
+ public void nextDocsAndScores(
+ int upTo, Bits liveDocs, DocAndFloatFeatureBuffer buffer)
throws IOException {
+ in.nextDocsAndScores(upTo, liveDocs, buffer);
+ scoredDocs[0] += buffer.size;
+ nextDocsAndScoresCalls[0]++;
Review Comment:
Good point. I've simplified the test to compare `scoredDocs` with
`collectedDocs` and removed the direct inspection of liveDocs. Thanks!
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]