Skip to content

Commit 370235a

Browse files
authored
[DOCS] Re-add paragraph noting doc_count is approximate (#83154) (#83159)
This paragraph was accidentally removed as part of #79205. Also fixes a minor heading capitalization error. (cherry picked from commit 63f228e)
1 parent ee470ac commit 370235a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/reference/aggregations/bucket/terms-aggregation.asciidoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ aggregation close to the `max_buckets` limit. You'll know you've gone too large
129129
if the request fails with a message about `max_buckets`.
130130

131131
[[search-aggregations-bucket-terms-aggregation-shard-size]]
132-
==== Shard Size
132+
==== Shard size
133133

134134
To get more accurate results, the `terms` agg fetches more than
135135
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
157157
[[terms-agg-doc-count-error]]
158158
==== Document count error
159159

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+
160164
`sum_other_doc_count` is the number of documents that didn't make it into the
161165
the top `size` terms. If this is greater than `0`, you can be sure that the
162166
`terms` agg had to throw away some buckets, either because they didn't fit into

0 commit comments

Comments
 (0)