OpenSearch/docs/reference/aggregations
Jim Ferenczi caea6b70fa
Add a new cluster setting to limit the total number of buckets returned by a request (#27581)
This commit adds a new dynamic cluster setting named `search.max_buckets` that can be used to limit the number of buckets created per shard or by the reduce phase. Each multi bucket aggregator can consume buckets during the final build of the aggregation at the shard level or during the reduce phase (final or not) in the coordinating node. When an aggregator consumes a bucket, a global count for the request is incremented and if this number is greater than the limit an exception is thrown (TooManyBuckets exception).
This change adds the ability for multi bucket aggregator to "consume" buckets in the global limit, the default is 10,000. It's an opt-in consumer so each multi-bucket aggregator must explicitly call the consumer when a bucket is added in the response.

Closes #27452 #26012
2017-12-06 09:15:28 +01:00
..
bucket [Docs] Unify spelling of Elasticsearch (#27567) 2017-11-29 09:44:25 +01:00
matrix [Docs] Convert remaining code snippets in docs (#26422) 2017-08-30 12:11:10 +02:00
metrics [Docs] Unify spelling of Elasticsearch (#27567) 2017-11-29 09:44:25 +01:00
pipeline Aggregations: bucket_sort pipeline aggregation (#27152) 2017-11-09 17:59:57 +00:00
bucket.asciidoc Add a new cluster setting to limit the total number of buckets returned by a request (#27581) 2017-12-06 09:15:28 +01:00
matrix.asciidoc refactor matrix agg documentation from modules to main agg section 2016-06-06 07:39:00 -05:00
metrics.asciidoc Adds geo_centroid metric aggregator 2015-10-14 16:19:09 -05:00
misc.asciidoc Use `typed_keys` parameter to prefix suggester names by type in search responses (#23080) 2017-02-10 10:53:38 +01:00
pipeline.asciidoc Aggregations: bucket_sort pipeline aggregation (#27152) 2017-11-09 17:59:57 +00:00