From 2520dc78ecf149a7ba259d6b70a789ef79ebcb8c Mon Sep 17 00:00:00 2001 From: Colin Goodheart-Smithe Date: Wed, 25 Feb 2015 11:00:55 +0000 Subject: [PATCH] [DOCS] added a note for the default shard_size value --- .../search/aggregations/bucket/terms-aggregation.asciidoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/reference/search/aggregations/bucket/terms-aggregation.asciidoc b/docs/reference/search/aggregations/bucket/terms-aggregation.asciidoc index 7e03703eb20..38f6630628a 100644 --- a/docs/reference/search/aggregations/bucket/terms-aggregation.asciidoc +++ b/docs/reference/search/aggregations/bucket/terms-aggregation.asciidoc @@ -158,6 +158,8 @@ NOTE: `shard_size` cannot be smaller than `size` (as it doesn't make much sens It is possible to not limit the number of terms that are returned by setting `size` to `0`. Don't use this on high-cardinality fields as this will kill both your CPU since terms need to be return sorted, and your network. +The default `shard_size` is a multiple of the `size` parameter which is dependant on the number of shards. + ==== Calculating Document Count Error There are two error values which can be shown on the terms aggregation. The first gives a value for the aggregation as