I have a cluster with 5 nodes and an index created on a daily basis. Alias pointing to all the indices for read
Ex:-
Index 1 = foo_2016-05-03t00:00:00-07:00
Index 2 = foo_2016-05-02t00:00:00-07:00
Alias foo , has both the indices
Now a GET to foo/_count is giving us 3122518 documents ( = sum of documents in index 1 & index 2)
However a get to localhost:9200/_stats/docs,store yields a result of 5801911 ( from _all.primaries.docs.count field)
Why is the difference in the values here ?