# Copy only Index Mapping from one cluster to another without the data

**URL:** <https://discuss.elastic.co/t/copy-only-index-mapping-from-one-cluster-to-another-without-the-data/324411>\
**Category:** Elasticsearch\
**Created:** [February 1, 2023, 10:55am UTC](https://discuss.elastic.co/t/copy-only-index-mapping-from-one-cluster-to-another-without-the-data/324411 "2023-02-01T10:55:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dadiasish](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadiasish/32/114221_2.png) [@dadiasish](https://discuss.elastic.co/u/dadiasish)\
**Post date:** [February 1, 2023, 10:55am UTC](https://discuss.elastic.co/t/copy-only-index-mapping-from-one-cluster-to-another-without-the-data/324411/1 "2023-02-01T10:55:01Z")

</div>

Hi,

I have a cluster which has index mappings and data in it.

I'm currently creating a new cluster where I have different set of data which need to be ingested with the same mappings like in the previous cluster.

So, how can I copy the mappings of an index from one cluster to another without copying the data.

Can you please suggest me a way for it.

Thanks in Advance.

---

<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:** [February 6, 2023, 6:33am UTC](https://discuss.elastic.co/t/copy-only-index-mapping-from-one-cluster-to-another-without-the-data/324411/2 "2023-02-06T06:33:32Z")

</div>

You can do a `GET indexname/_mapping` and then put it on the new cluster. That's probably the easiest.

---

<div class="post-metadata">

**Author:** ![dadiasish](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadiasish/32/114221_2.png) [@dadiasish](https://discuss.elastic.co/u/dadiasish)\
**Post date:** [February 6, 2023, 6:37am UTC](https://discuss.elastic.co/t/copy-only-index-mapping-from-one-cluster-to-another-without-the-data/324411/3 "2023-02-06T06:37:11Z")

</div>

Thanks for the suggestion Walkom.

I'm already aware about this option, but it's kind of a manual task doing for individual index separately when having a cluster with multiple number of indexes.

Hence, I'm looking out for an alternative option than this.

Do suggest me if you know any other way.

Thanks in Advance.

---

<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:** [March 6, 2023, 6:37am UTC](https://discuss.elastic.co/t/copy-only-index-mapping-from-one-cluster-to-another-without-the-data/324411/4 "2023-03-06T06:37:44Z")

</div>

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