Partitioned index stats

When I take the index status using

I see the below two metrics, how are these different. Would not the items count match the num_docs_indexed?


Hi @rajib761 ,

The num_docs_indexed is an incremental counter keeping count of number of documents were indexed over time. If one document gets updated multiple times, this counter will be incremented each time the update to the document gets indexed. If a document gets deleted, that will also count against an update and num_docs_indexed will get incremented.

On the other hand, items_count is actual number of document that are currently present in the index.

Hope this helps.

1 Like