Skip to content

Commit 20d0ee9

Browse files
committed
Fix doc counts for empty significant terms aggregations
1 parent b5339a6 commit 20d0ee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/elasticsearch/search/aggregations/bucket/significant/GlobalOrdinalsSignificantTermsAggregator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public SignificantStringTerms buildEmptyAggregation() {
153153
IndexReader topReader = searcher.getIndexReader();
154154
int supersetSize = topReader.numDocs();
155155
return new SignificantStringTerms(name, bucketCountThresholds.getRequiredSize(), bucketCountThresholds.getMinDocCount(),
156-
pipelineAggregators(), metaData(), format, 0, supersetSize, significanceHeuristic, emptyList());
156+
pipelineAggregators(), metaData(), format, numCollectedDocs, supersetSize, significanceHeuristic, emptyList());
157157
}
158158

159159
@Override

0 commit comments

Comments
 (0)