When using elasticsearch 6.7,
GET /indexName/_search
returns the exact total of the index:
"hits" : {
"total" : 1527325,
"max_score" : 1.0,
...}
But in elasticsearch 7.0
GET /indexName/_search
gets:
"hits" : {
"total" : {
"value" : 10000,
"relation" : "gte"
},
which means total is greater than 10000, so how can I get the exact total count of an index in 7.0?