# Set \_id value to an existing field value of \_source

**URL:** <https://discuss.elastic.co/t/set-id-value-to-an-existing-field-value-of-source/191944>\
**Category:** Elasticsearch\
**Created:** [July 24, 2019, 4:40am UTC](https://discuss.elastic.co/t/set-id-value-to-an-existing-field-value-of-source/191944 "2019-07-24T04:40:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MKU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mku/32/48327_2.png) [@MKU](https://discuss.elastic.co/u/MKU)\
**Post date:** [July 24, 2019, 4:40am UTC](https://discuss.elastic.co/t/set-id-value-to-an-existing-field-value-of-source/191944/1 "2019-07-24T04:40:06Z")

</div>

Hi ,  
I have a situation where i have to use the existing field value as an \_id ,as described here [https://www.elastic.co/guide/en/elasticsearch/reference/1.4/mapping-id-field.html](https://www.elastic.co/guide/en/elasticsearch/reference/1.4/mapping-id-field.html)  
I know it is not supported in latest versions.  
and we are supposed to use **/index/type/\_id** for creating own id.  
But in application i am working on the \_id will be generated by third party app and will be stored in \_source ,i should be using that as an \_id.  
Is there any way to use existing field value as \_id.

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:** [August 21, 2019, 4:40am UTC](https://discuss.elastic.co/t/set-id-value-to-an-existing-field-value-of-source/191944/2 "2019-08-21T04:40:06Z")

</div>

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