How to know if a particular document has been indexed in primary and all the replicas

I have an elastic search cluster where the replication factor is 2.I want to know if the particular document which has been sent for create or update, has been indexed across the primary as well as all the replicas.

Is it possible to know if a particular doc has been create or updated across all the replicas.

Something like, can I scan the transaction logs of elastic search and find out or there any other way?

At what point do you want to know this has been done, when the client passes the indexing request to the cluster, or later on at some other poing?

@warkolm Not necessarily when the client passes the indexing request. It can be at some later point in time also.

Does https://www.elastic.co/guide/en/elasticsearch/reference/5.6/docs-index_.html#index-wait-for-active-shards help?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.