# How to check the total number of data over 10,000?

**URL:** <https://discuss.elastic.co/t/how-to-check-the-total-number-of-data-over-10-000/296799>\
**Category:** Elasticsearch\
**Created:** [February 10, 2022, 6:06am UTC](https://discuss.elastic.co/t/how-to-check-the-total-number-of-data-over-10-000/296799 "2022-02-10T06:06:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sramana235](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@sramana235](https://discuss.elastic.co/u/sramana235)\
**Post date:** [February 10, 2022, 6:06am UTC](https://discuss.elastic.co/t/how-to-check-the-total-number-of-data-over-10-000/296799/1 "2022-02-10T06:06:41Z")

</div>

Hello friends  
There are more than 1 million docs in the index.  
At this time, when information is obtained through match\_all, the total value is displayed as 10,000.  
How can I check the number of doc?

I know that more than 10,000 cases in Elasticsearch cannot be viewed.  
Currently, I am developing with c++ and I would appreciate your help.

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [February 10, 2022, 6:38am UTC](https://discuss.elastic.co/t/how-to-check-the-total-number-of-data-over-10-000/296799/2 "2022-02-10T06:38:39Z")

</div>

[`track_total_hits`](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-your-data.html#track-total-hits) would help you.

Or you can use [count API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-count.html), too.

```auto
GET /my_index/_count

```

---

<div class="post-metadata">

**Author:** ![sramana235](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@sramana235](https://discuss.elastic.co/u/sramana235)\
**Post date:** [February 10, 2022, 7:26am UTC](https://discuss.elastic.co/t/how-to-check-the-total-number-of-data-over-10-000/296799/3 "2022-02-10T07:26:00Z")

</div>

thx bro.  
I'm always receiving a lot of help.

query first "track\_total\_hits": true insert to I solved it through.

I would appreciate it if you could continue to help me 😃  
I'm worried if my gratitude was delivered well because my English was poor.

---

<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:** [March 10, 2022, 7:26am UTC](https://discuss.elastic.co/t/how-to-check-the-total-number-of-data-over-10-000/296799/4 "2022-03-10T07:26:04Z")

</div>

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