# What does sum\_other\_doc\_count mean exactly?

**URL:** <https://discuss.elastic.co/t/what-does-sum-other-doc-count-mean-exactly/159687>\
**Category:** Elasticsearch\
**Created:** [December 6, 2018, 9:00am UTC](https://discuss.elastic.co/t/what-does-sum-other-doc-count-mean-exactly/159687 "2018-12-06T09:00:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nayun\_oh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nayun_oh/32/46442_2.png) [@nayun\_oh](https://discuss.elastic.co/u/nayun_oh)\
**Post date:** [December 6, 2018, 9:00am UTC](https://discuss.elastic.co/t/what-does-sum-other-doc-count-mean-exactly/159687/1 "2018-12-06T09:00:47Z")

</div>

When I use aggregate, I can see sum\_other\_doc\_count in the result. What does this mean?  
Thank you in advance!

---

<div class="post-metadata">

**Author:** ![mayya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mayya/32/83147_2.png) [@mayya](https://discuss.elastic.co/u/mayya)\
**Post date:** [December 21, 2018, 4:35pm UTC](https://discuss.elastic.co/t/what-does-sum-other-doc-count-mean-exactly/159687/2 "2018-12-21T16:35:34Z")

</div>

> [@nayun\_oh](#):
>
> sum\_other\_doc\_count

As this [page](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html) explains it `sum_other_doc_count` - this number is the sum of the document counts for all buckets that are not part of the response. We return only the top buckets in the response. If there are many buckets, some buckets will not make it to the response. We count all the documents that contain these buckets and display this number as `sum_other_doc_count`.

---

<div class="post-metadata">

**Author:** ![nayun\_oh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nayun_oh/32/46442_2.png) [@nayun\_oh](https://discuss.elastic.co/u/nayun_oh)\
**Post date:** [December 24, 2018, 6:13am UTC](https://discuss.elastic.co/t/what-does-sum-other-doc-count-mean-exactly/159687/3 "2018-12-24T06:13:09Z")

</div>

Thank you !!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 21, 2019, 6:13am UTC](https://discuss.elastic.co/t/what-does-sum-other-doc-count-mean-exactly/159687/4 "2019-01-21T06:13:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
