Skip to content

Commit

Permalink
Disable terms optimization
Browse files Browse the repository at this point in the history
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
  • Loading branch information
harshavamsi committed Feb 10, 2025
1 parent 40c461d commit 993748e
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,15 @@ boolean tryCollectFromTermFrequencies(LeafReaderContext ctx, SortedSetDocValues
protected boolean tryPrecomputeAggregationForLeaf(LeafReaderContext ctx) throws IOException {
SortedSetDocValues globalOrds = valuesSource.globalOrdinalsValues(ctx);

if (collectionStrategy instanceof DenseGlobalOrds
&& this.resultStrategy instanceof StandardTermsResults
&& subAggregators.length == 0) {
return tryCollectFromTermFrequencies(
ctx,
globalOrds,
(ord, docCount) -> incrementBucketDocCount(collectionStrategy.globalOrdToBucketOrd(0, ord), docCount)
);
}
// if (collectionStrategy instanceof DenseGlobalOrds
// && this.resultStrategy instanceof StandardTermsResults
// && subAggregators.length == 0) {
// return tryCollectFromTermFrequencies(
// ctx,
// globalOrds,
// (ord, docCount) -> incrementBucketDocCount(collectionStrategy.globalOrdToBucketOrd(0, ord), docCount)
// );
// }
return false;
}

Expand Down

0 comments on commit 993748e

Please sign in to comment.