Skip to content

Commit 4fcd4ad

Browse files
authored
Update bulk scorer cancellation interval to match BooleanScorer window size (#127034)
BooleanScorer's window has been updated, lets increase our initial cancellation check to match.
1 parent e840334 commit 4fcd4ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/search/internal/CancellableBulkScorer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class CancellableBulkScorer extends BulkScorer {
2424

2525
// we use the BooleanScorer window size as a base interval in order to make sure that we do not
2626
// slow down boolean queries
27-
private static final int INITIAL_INTERVAL = 1 << 11;
27+
private static final int INITIAL_INTERVAL = 1 << 12;
2828

2929
// No point in having intervals that are larger than 1M
3030
private static final int MAX_INTERVAL = 1 << 20;

0 commit comments

Comments
 (0)