# Create New Index Using Mapping from another index

**URL:** <https://discuss.elastic.co/t/create-new-index-using-mapping-from-another-index/306567>\
**Category:** Elasticsearch\
**Created:** [June 7, 2022, 12:50pm UTC](https://discuss.elastic.co/t/create-new-index-using-mapping-from-another-index/306567 "2022-06-07T12:50:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SUMANT\_MISHRA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sumant_mishra/32/77606_2.png) [@SUMANT\_MISHRA](https://discuss.elastic.co/u/SUMANT_MISHRA)\
**Post date:** [June 7, 2022, 12:50pm UTC](https://discuss.elastic.co/t/create-new-index-using-mapping-from-another-index/306567/1 "2022-06-07T12:50:02Z")

</div>

Hi,

Is there a way to create index by using mapping from another index? The requirement is here to copy data from one index to another that can be achieved using reindex API but the mapping updates in the source index. If I use reindex API, then it gives errors related to property field types.So, reindex does fulfil the requirement and there is a data loss.

I am trying to create new index by using the mapping from the source index first and then reindex. But I am not getting any way to achieve this without custom script.

---

<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:** [July 5, 2022, 12:50pm UTC](https://discuss.elastic.co/t/create-new-index-using-mapping-from-another-index/306567/2 "2022-07-05T12:50:45Z")

</div>

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