# Document Ids using the Suggester

**URL:** <https://discuss.elastic.co/t/document-ids-using-the-suggester/125589>\
**Category:** Elasticsearch\
**Created:** [March 26, 2018, 11:03am UTC](https://discuss.elastic.co/t/document-ids-using-the-suggester/125589 "2018-03-26T11:03:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![han1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/han1/32/20141_2.png) [@han1](https://discuss.elastic.co/u/han1)\
**Post date:** [March 26, 2018, 11:03am UTC](https://discuss.elastic.co/t/document-ids-using-the-suggester/125589/1 "2018-03-26T11:03:35Z")

</div>

I know that if you have a field called Id, then Elasticsearch will use that field as the Id of the document.

However, we want Elasticsearch to create the Ids for us.

We are using the Suggester and we need to access the Id of each document that is returned.

With the NEST API, there is a property called Nest.Id, however, it is an object and does not have any public properties for us to use in order to get the actual value it represents.

Is there any way we can get this Id value from the Nest.Id object.

Many thanks

---

<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:** [April 23, 2018, 11:03am UTC](https://discuss.elastic.co/t/document-ids-using-the-suggester/125589/2 "2018-04-23T11:03:48Z")

</div>

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