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

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.

track_total_hits would help you.

Or you can use count API, too.

GET /my_index/_count
2 Likes

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 :smiley:
I'm worried if my gratitude was delivered well because my English was poor.

1 Like

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