# How can i update the data in index when i have multiple docementId

**URL:** <https://discuss.elastic.co/t/how-can-i-update-the-data-in-index-when-i-have-multiple-docementid/340167>\
**Category:** Logstash\
**Created:** [August 5, 2023, 4:01am UTC](https://discuss.elastic.co/t/how-can-i-update-the-data-in-index-when-i-have-multiple-docementid/340167 "2023-08-05T04:01:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohit\_Rajput](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohit_rajput/32/122958_2.png) [@Mohit\_Rajput](https://discuss.elastic.co/u/Mohit_Rajput)\
**Post date:** [August 5, 2023, 4:01am UTC](https://discuss.elastic.co/t/how-can-i-update-the-data-in-index-when-i-have-multiple-docementid/340167/1 "2023-08-05T04:01:41Z")

</div>

How can i update the data in index when i have multiple docementtId?

---

<div class="post-metadata">

**Author:** ![Wave](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wave/32/117242_2.png) [@Wave](https://discuss.elastic.co/u/Wave)\
**Post date:** [August 9, 2023, 1:06pm UTC](https://discuss.elastic.co/t/how-can-i-update-the-data-in-index-when-i-have-multiple-docementid/340167/2 "2023-08-09T13:06:34Z")

</div>

Hi @Mohit_Rajput,

What do you mean by multiple document id? Each document indexed by elastic is given just [one id](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-id-field.html). Of course you can have multiple fields that hold unique values that could identify the document that you provide yourself but those are separate from the \_id value used by elastic.

What is your use case? As you can see in the documentation provided above you CAN specify the \_id value at index time which might be the solution you are looking for.

---

<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 6, 2023, 1:07pm UTC](https://discuss.elastic.co/t/how-can-i-update-the-data-in-index-when-i-have-multiple-docementid/340167/3 "2023-09-06T13:07:32Z")

</div>

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