Apache Lucene open-source search software
Fix excessive skipping in `BlockMaxConjunctionBulkScorer`.
Adrien Grand3f81f2f31574
diff --git a/lucene/core/src/java/org/apache/lucene/search/BlockMaxConjunctionBulkScorer.java b/lucene/core/src/java/org/apache/lucene/search/BlockMaxConjunctionBulkScorer.javaindex 3c505fa66a4..be38778d03b 100644--- a/lucene/core/src/java/org/apache/lucene/search/BlockMaxConjunctionBulkScorer.java+++ b/lucene/core/src/java/org/apache/lucene/search/BlockMaxConjunctionBulkScorer.java@@ -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 matchif (hasMinCompetitiveScore- && MathUtil.sumUpperBound(currentScore + sumOfOtherClauses[i], scorers.length)+ && (float) MathUtil.sumUpperBound(currentScore + sumOfOtherClauses[i], scorers.length)< scorable.minCompetitiveScore) {doc = lead.nextDoc();continue advanceHead;