Elasticsearch - inconsistent num of document between _cat/indices and <index>/_search -


here got 2 urls

http://localhost:9200/_cat/indices?v

health status index          pri rep docs.count docs.deleted store.size pri.store.size  green  open   myindex        5   1         40            0    263.4kb        131.7kb  

http://localhost:9200/myindex/_search

hits: {total: 10, max_score: 1, hits: [...]} 

hits.total=10 returned second url expected, why docs.count = 40 returned first url different? thanks!

one option have deleted docs: documents immutable in es modification (including delete) create new copy of doc new version-number.

the call _cat/indices?v returns count of docs including deleted ones, though can't access them through _search


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -