# Track\_total\_hits and approximate hit count

**URL:** <https://discuss.elastic.co/t/track-total-hits-and-approximate-hit-count/203598>\
**Category:** Elasticsearch\
**Created:** [October 15, 2019, 9:01am UTC](https://discuss.elastic.co/t/track-total-hits-and-approximate-hit-count/203598 "2019-10-15T09:01:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ctombaugh](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@ctombaugh](https://discuss.elastic.co/u/ctombaugh)\
**Post date:** [October 15, 2019, 9:01am UTC](https://discuss.elastic.co/t/track-total-hits-and-approximate-hit-count/203598/1 "2019-10-15T09:01:25Z")

</div>

Assuming that track\_total\_hits=true performs an accurate hit count, is there any way to have an approximate hit count and somewhat better performance? E.g. for 123,456 documents I would like to know that I have approximately 120,000 documents (gte 100,000 is not good enough).

I'm on Elasticsearch 7.4.0.

Thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 15, 2019, 9:18am UTC](https://discuss.elastic.co/t/track-total-hits-and-approximate-hit-count/203598/2 "2019-10-15T09:18:54Z")

</div>

Welcome!

I don't think you can do that but may be that could ring a bell to @jimczi?

---

<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:** [November 12, 2019, 9:19am UTC](https://discuss.elastic.co/t/track-total-hits-and-approximate-hit-count/203598/3 "2019-11-12T09:19:30Z")

</div>

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