I have deleted an index from my Elasticsearch and created the new index with same name. When I am trying to get doc.count using below command then initially it is showing 0
curl -X GET "localhost:9200/_cat/indices?v&pretty"
but after 10-15 it starts showing :
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open index_name uuid 1 1 2564 16068 1.9mb 1.9mb
I tried everything as per my knowledge(like deleting index, clearing cache, updating document) nothing is working. Even if I am trying to update data of any document inside this index then updated data is visible for may be 10 min, after that again old data is coming