Hello.
I would like to get help with number of documents.
I have a indice which contains about 30M docs. cat indices shows as below.
curl -XGET 10.0.1.5:9200/_cat/indices/sonested?v
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open sonested 3ZkXcwtjSIOcdlZJWpKgcg 1 0 29421692 0 4.9gb 4.9gb
However, if I execute match_all query
, hits.total only returns 11203027.
cat query.json.2
{
"size": 0,
"query": {
"match_all": {}
}
}
curl -XGET 10.0.1.5:9200/sonested/_search?pretty -d @query.json.2
{
"took" : 328,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"hits" : {
"total" : 11203027,
"max_score" : 0.0,
"hits" : [ ]
}
}
counts api also returns 11M
curl -XGET '10.0.1.5:9200/sonested/_count?pretty'
{
"count" : 11203027,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
}
}
Why is hits.total different from docs.count of cat api?
Version I am using is 5.3.0
[2017-04-11T16:41:35,777][INFO ][o.e.n.Node ] [uniform-2] version[5.3.0], pid[17602], build[3adb13b/2017-03-23T03:31:50.652Z], OS[Linux/3.10.0-