# How to check if a document exists for a specified Id and alias name

**URL:** <https://discuss.elastic.co/t/how-to-check-if-a-document-exists-for-a-specified-id-and-alias-name/276464>\
**Category:** Elasticsearch\
**Created:** [June 20, 2021, 2:56pm UTC](https://discuss.elastic.co/t/how-to-check-if-a-document-exists-for-a-specified-id-and-alias-name/276464 "2021-06-20T14:56:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [June 21, 2021, 1:27am UTC](https://discuss.elastic.co/t/how-to-check-if-a-document-exists-for-a-specified-id-and-alias-name/276464/2 "2021-06-21T01:27:50Z")

</div>

[Check whether document returned is from a read or a write index](https://discuss.elastic.co/t/check-whether-document-returned-is-from-a-read-or-a-write-index/276133) is the best answer you will get for this.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-check-if-a-document-exists-for-a-specified-id-and-alias-name/276464)._
