Skip to content

Commit 449203f

Browse files
committed
Add estimate for field merge result
1 parent d2fed37 commit 449203f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/main/java/org/elasticsearch/action/search/QueryPhaseResultConsumer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ public SearchPhaseController.ReducedQueryPhase reduce() throws Exception {
226226
// execution for shards on the coordinating node itself
227227
if (mergeResult != null) {
228228
consumePartialMergeResult(mergeResult, topDocsList, aggsList);
229+
addEstimateAndMaybeBreak(mergeResult.estimatedSize);
229230
}
230231
Tuple<TopDocsStats, MergeResult> batchedResult;
231232
while ((batchedResult = batchedResults.poll()) != null) {

0 commit comments

Comments
 (0)