Skip to content

Commit 7624f54

Browse files
committed
Fix use of DisjunctionDISIApproximation API
1 parent 28e1e00 commit 7624f54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,8 @@ private final class MultiFilterCompetitiveLeafCollector extends AbstractLeafColl
474474

475475
public void collect(int doc, long bucket) throws IOException {
476476
boolean matched = false;
477-
var top = disjunctionDisi.topList();
478-
if (top.doc == doc) {
477+
int target = disjunctionDisi.advance(doc);
478+
if (target == doc) {
479479
for (DisiWrapper w = disjunctionDisi.topList(); w != null; w = w.next) {
480480
FilterMatchingDisiWrapper topMatch = (FilterMatchingDisiWrapper) w;
481481
if (topMatch.checkDocForMatch(doc)) {

0 commit comments

Comments
 (0)