# Elasticsearch 5.5.1 term aggregations doc-count is error

**URL:** https://discuss.elastic.co/t/elasticsearch-5-5-1-term-aggregations-doc-count-is-error/109221
**Category:** Elasticsearch
**Created:** [November 27, 2017, 1:00pm UTC](https://discuss.elastic.co/t/elasticsearch-5-5-1-term-aggregations-doc-count-is-error/109221 "2017-11-27T13:00:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![whybangbang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/whybangbang/32/7116_2.png) [@whybangbang](https://discuss.elastic.co/u/whybangbang)
#### Post date: [November 27, 2017, 1:00pm UTC](https://discuss.elastic.co/t/elasticsearch-5-5-1-term-aggregations-doc-count-is-error/109221/1 "2017-11-27T13:00:45Z")

</div>

when we search a number field ,result total\_count is 312, but when agg the doc-count is 92, i don't know the reason

---

<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: [December 25, 2017, 1:01pm UTC](https://discuss.elastic.co/t/elasticsearch-5-5-1-term-aggregations-doc-count-is-error/109221/2 "2017-12-25T13:01:04Z")

</div>

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