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

**URL:** <https://discuss.elastic.co/t/how-to-know-if-a-particular-document-has-been-indexed-in-primary-and-all-the-replicas/103022>\
**Category:** Elasticsearch\
**Created:** [October 6, 2017, 1:52pm UTC](https://discuss.elastic.co/t/how-to-know-if-a-particular-document-has-been-indexed-in-primary-and-all-the-replicas/103022 "2017-10-06T13:52:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aniketkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aniketkk/32/96814_2.png) [@aniketkk](https://discuss.elastic.co/u/aniketkk)\
**Post date:** [October 6, 2017, 1:52pm UTC](https://discuss.elastic.co/t/how-to-know-if-a-particular-document-has-been-indexed-in-primary-and-all-the-replicas/103022/1 "2017-10-06T13:52:43Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 6, 2017, 9:48pm UTC](https://discuss.elastic.co/t/how-to-know-if-a-particular-document-has-been-indexed-in-primary-and-all-the-replicas/103022/2 "2017-10-06T21:48:27Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![aniketkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aniketkk/32/96814_2.png) [@aniketkk](https://discuss.elastic.co/u/aniketkk)\
**Post date:** [October 9, 2017, 9:34am UTC](https://discuss.elastic.co/t/how-to-know-if-a-particular-document-has-been-indexed-in-primary-and-all-the-replicas/103022/3 "2017-10-09T09:34:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 9, 2017, 10:16am UTC](https://discuss.elastic.co/t/how-to-know-if-a-particular-document-has-been-indexed-in-primary-and-all-the-replicas/103022/4 "2017-10-09T10:16:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 6, 2017, 10:16am UTC](https://discuss.elastic.co/t/how-to-know-if-a-particular-document-has-been-indexed-in-primary-and-all-the-replicas/103022/5 "2017-11-06T10:16:47Z")

</div>

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