Skip to content

Commit cdd7abe

Browse files
committed
test
1 parent f9c239d commit cdd7abe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/src/main/java/org/opensearch/search/aggregations/bucket/BucketsAggregator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public final void collectBucket(LeafBucketCollector subCollector, int doc, long
120120
*/
121121
public final void collectExistingBucket(LeafBucketCollector subCollector, int doc, long bucketOrd) throws IOException {
122122
long docCount = docCountProvider.getDocCount(doc);
123-
if (docCounts.increment(bucketOrd, docCount) == docCount) {
123+
if (docCounts.increment(bucketOrd, docCount) == docCount) {// 第一次处理
124124
// We calculate the final number of buckets only during the reduce phase. But we still need to
125125
// trigger bucket consumer from time to time in order to give it a chance to check available memory and break
126126
// the execution if we are running out. To achieve that we are passing 0 as a bucket count.

server/src/main/java/org/opensearch/search/aggregations/bucket/nested/NestedAggregator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public class NestedAggregator extends BucketsAggregator implements SingleBucketA
103103
public LeafBucketCollector getLeafCollector(final LeafReaderContext ctx, final LeafBucketCollector sub) throws IOException {
104104
IndexReaderContext topLevelContext = ReaderUtil.getTopLevelContext(ctx);
105105
IndexSearcher searcher = new IndexSearcher(topLevelContext);
106-
searcher.setQueryCache(null);
106+
searcher.setQueryCache(null);// todo kewei 是否考虑使用 BitFilter
107107
Weight weight = searcher.createWeight(searcher.rewrite(childFilter), ScoreMode.COMPLETE_NO_SCORES, 1f);
108108
Scorer childDocsScorer = weight.scorer(ctx);
109109

0 commit comments

Comments
 (0)