You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a hard_bounds parameter to explicitly limit the buckets that a histogram
can generate. This is especially useful in case of open ended ranges that can
produce a very large number of buckets.
Closeselastic#50109
Copy file name to clipboardExpand all lines: server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AbstractHistogramAggregator.java
+3
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,7 @@ public abstract class AbstractHistogramAggregator extends BucketsAggregator {
50
50
protectedfinallongminDocCount;
51
51
protectedfinaldoubleminBound;
52
52
protectedfinaldoublemaxBound;
53
+
protectedfinalDoubleBoundshardBounds;
53
54
protectedfinalLongKeyedBucketOrdsbucketOrds;
54
55
55
56
publicAbstractHistogramAggregator(
@@ -62,6 +63,7 @@ public AbstractHistogramAggregator(
62
63
longminDocCount,
63
64
doubleminBound,
64
65
doublemaxBound,
66
+
DoubleBoundshardBounds,
65
67
DocValueFormatformatter,
66
68
SearchContextcontext,
67
69
Aggregatorparent,
@@ -80,6 +82,7 @@ public AbstractHistogramAggregator(
0 commit comments