Elastic Search : Wrong document count of a index every time

Hi ,

I am trying to get the total count of document in a index preceded by index creation operation.
With different runs count keep on varies. No unassigned shards during this process and cluster health for that index is green.

Standalone count returns current result. Log file does not state any such hints for the same.Requesting to provide insights to understand why the count of document varies with every run.

Tried to get document count using java count api ( still count varies) and aggregation matchallquery() for that instances to getTotalHits.

Details : Total nodes 4 . replica 1

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