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


(Aniket Kulkarni) #1

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?


(Mark Walkom) #2

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?


(Aniket Kulkarni) #3

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


(Mark Walkom) #4

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


(system) #5

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