File tree 1 file changed +5
-1
lines changed
docs/reference/aggregations/bucket 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ aggregation close to the `max_buckets` limit. You'll know you've gone too large
129
129
if the request fails with a message about `max_buckets`.
130
130
131
131
[[search-aggregations-bucket-terms-aggregation-shard-size]]
132
- ==== Shard Size
132
+ ==== Shard size
133
133
134
134
To get more accurate results, the `terms` agg fetches more than
135
135
the top `size` terms from each shard. It fetches the top `shard_size` terms,
@@ -157,6 +157,10 @@ NOTE: `shard_size` cannot be smaller than `size` (as it doesn't make much sens
157
157
[[terms-agg-doc-count-error]]
158
158
==== Document count error
159
159
160
+ Even with a larger `shard_size` value, `doc_count` values for a `terms`
161
+ aggregation may be approximate. As a result, any sub-aggregations on the `terms`
162
+ aggregation may also be approximate.
163
+
160
164
`sum_other_doc_count` is the number of documents that didn't make it into the
161
165
the top `size` terms. If this is greater than `0`, you can be sure that the
162
166
`terms` agg had to throw away some buckets, either because they didn't fit into
You can’t perform that action at this time.
0 commit comments