# Duplicate a document on elasticsearch

**URL:** <https://discuss.elastic.co/t/duplicate-a-document-on-elasticsearch/281504>\
**Category:** Elasticsearch\
**Created:** [August 16, 2021, 6:14am UTC](https://discuss.elastic.co/t/duplicate-a-document-on-elasticsearch/281504 "2021-08-16T06:14:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandeep\_Raju](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sandeep\_Raju](https://discuss.elastic.co/u/Sandeep_Raju)\
**Post date:** [August 16, 2021, 6:14am UTC](https://discuss.elastic.co/t/duplicate-a-document-on-elasticsearch/281504/1 "2021-08-16T06:14:05Z")

</div>

Hi,

I want to create a duplicate document entry in elasticsearch as it has 40 fields associated with it.

Also i want to create another document entry with just 1 fields altered.

Which command to go about ?

---

<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 16, 2021, 6:22am UTC](https://discuss.elastic.co/t/duplicate-a-document-on-elasticsearch/281504/2 "2021-08-16T06:22:50Z")

</div>

I replied to your SO thread, but there's no special commands for this.

Index the new document and it'll add the new field to the mapping for the index.

---

<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 13, 2021, 6:23am UTC](https://discuss.elastic.co/t/duplicate-a-document-on-elasticsearch/281504/3 "2021-09-13T06:23:27Z")

</div>

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