# While copying the existing document with adding \_ to the id duplicate data is getting

**URL:** https://discuss.elastic.co/t/while-copying-the-existing-document-with-adding-to-the-id-duplicate-data-is-getting/253644
**Category:** Elasticsearch
**Created:** [October 29, 2020, 6:26am UTC](https://discuss.elastic.co/t/while-copying-the-existing-document-with-adding-to-the-id-duplicate-data-is-getting/253644 "2020-10-29T06:26:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kiran3](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@kiran3](https://discuss.elastic.co/u/kiran3)
#### Post date: [October 29, 2020, 6:26am UTC](https://discuss.elastic.co/t/while-copying-the-existing-document-with-adding-to-the-id-duplicate-data-is-getting/253644/1 "2020-10-29T06:26:07Z")

</div>

when we are making a copy of the existing document(ex id: Tf23) with adding \_ to the id (ex id:\_Tf23) we are getting an issue like the existing document id (Tf23) it is also taking the \_ to the id but we need a copy of the document with \_ id which means we need to see two document like  
Expected output: Tf23 and \_Tf23  
Actual output: \_Tf23 and \_Tf23  
where we are taking the existing id in indexing has routing field by adding \_ at the begin of the id(ex: \_Efr43)

Please help in resolve these issue

---

<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: [November 26, 2020, 6:26am UTC](https://discuss.elastic.co/t/while-copying-the-existing-document-with-adding-to-the-id-duplicate-data-is-getting/253644/2 "2020-11-26T06:26:30Z")

</div>

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