Apache Lucene open-source search software
Stop requiring MaxScoreBulkScorer's outer window from having at least INNER_WINDOW_SIZE docs. (#13582)
Adrien Grandfff997f80165
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex f361fdcf002..bc20db67121 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -292,6 +292,9 @@ Optimizations* GITHUB#12100: WordBreakSpellChecker.suggestWordBreaks now does a breadth first search, allowing it to returnbetter matches with fewer evaluations (hossman)+* GITHUB#13582: Stop requiring MaxScoreBulkScorer's outer window from having at+ least INNER_WINDOW_SIZE docs. (Adrien Grand)+Changes in runtime behavior---------------------diff --git a/lucene/core/src/java/org/apache/lucene/search/MaxScoreBulkScorer.java b/lucene/core/src/java/org/apache/lucene/search/MaxScoreBulkScorer.javaindex f250abfbcb9..bce02cbdae6 100644--- a/lucene/core/src/java/org/apache/lucene/search/MaxScoreBulkScorer.java+++ b/lucene/core/src/java/org/apache/lucene/search/MaxScoreBulkScorer.java@@ -271,11 +271,6 @@ final class MaxScoreBulkScorer extends BulkScorer {windowMax = (int) Math.min(windowMax, upTo + 1L); // upTo is inclusive}- // Score at least an entire inner window of docs- windowMax =- Math.max(- windowMax, (int) Math.min(Integer.MAX_VALUE, (long) windowMin + INNER_WINDOW_SIZE));-return windowMax;}