# Getting elasticsearch generated ids?

**URL:** <https://discuss.elastic.co/t/getting-elasticsearch-generated-ids/143023>\
**Category:** Elasticsearch\
**Created:** [August 4, 2018, 3:27pm UTC](https://discuss.elastic.co/t/getting-elasticsearch-generated-ids/143023 "2018-08-04T15:27:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cool\_arun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cool_arun/32/70465_2.png) [@cool\_arun](https://discuss.elastic.co/u/cool_arun)\
**Post date:** [August 4, 2018, 3:27pm UTC](https://discuss.elastic.co/t/getting-elasticsearch-generated-ids/143023/1 "2018-08-04T15:27:39Z")

</div>

is there any query available to get all the document which having elasticsearch generated id.  
i have both elasticsearch generated id and my own custom ids, i want to get all the document which has elasticsearch generated ids.

---

<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:** [August 5, 2018, 6:15am UTC](https://discuss.elastic.co/t/getting-elasticsearch-generated-ids/143023/2 "2018-08-05T06:15:27Z")

</div>

There's no native way, no.  
If you want to do this, you should attached a custom key+value to the ones you are defining, so you can then filter.

---

<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:** [September 2, 2018, 6:15am UTC](https://discuss.elastic.co/t/getting-elasticsearch-generated-ids/143023/3 "2018-09-02T06:15:39Z")

</div>

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