Fix excessive skipping in `BlockMaxConjunctionBulkScorer`.

This commit is contained in:
Adrien Grand 2023-10-03 11:33:00 +02:00
parent 2106bf5172
commit 3f81f2f315
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ final class BlockMaxConjunctionBulkScorer extends BulkScorer {
for (int i = 1; i < iterators.length; ++i) {
// First check if we have a chance of having a match
if (hasMinCompetitiveScore
&& MathUtil.sumUpperBound(currentScore + sumOfOtherClauses[i], scorers.length)
&& (float) MathUtil.sumUpperBound(currentScore + sumOfOtherClauses[i], scorers.length)
< scorable.minCompetitiveScore) {
doc = lead.nextDoc();
continue advanceHead;