tokosh February 2016
Elasticsearch: count returning wrong value
We have around 20M documents. Each document has a unique ID. When we do a count-request (/index/type/_count) we get around 30K less documents than we indexed.
I checked the existence of each document by making requests on the ID field. Result: there is none missing.
Is there any reasons why
_count returns not the exact count?
PS: I read about estimates when doing aggregations. Is this perhaps related?
Richa February 2016
Coutn API may result in inaccurate results. You can use
search_type=count instead. It works in the same way as
searching works but returns only
Use it like
Study more about
You can also refer to this question
Asked in February 2016
Viewed 3,112 times
Answered 1 times
Leave an answer
Quote of the day: live life