Hi There,
I am using ES 5.3.0. I have indexed about 2.2M documents in my index, and it seems like count API is returning results that are far too different than _cat/indices API..is there something wrong?
curl localhost:9200/_cat/indices?v
health status index pri rep docs.count docs.deleted store.size pri.store.size
green open index1 6 2 172544 0 384.7mb 128.2mb
green open index2 6 2 2708259 74040 6.8gb 2.1gb
$ curl localhost:9200/index1/_count?pretty
{
"count" : 84916,
"_shards" : {
"total" : 6,
"successful" : 6,
"failed" : 0
}
}
$ curl localhost:9200/index2/_count?pretty
{
"count" : 1027782,
"_shards" : {
"total" : 6,
"successful" : 6,
"failed" : 0
}
}
Thanks
Madhav.