# What is the location of mapping template

**URL:** <https://discuss.elastic.co/t/what-is-the-location-of-mapping-template/69081>\
**Category:** Elasticsearch\
**Created:** [December 14, 2016, 8:40pm UTC](https://discuss.elastic.co/t/what-is-the-location-of-mapping-template/69081 "2016-12-14T20:40:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![saisn](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@saisn](https://discuss.elastic.co/u/saisn)\
**Post date:** [December 14, 2016, 8:40pm UTC](https://discuss.elastic.co/t/what-is-the-location-of-mapping-template/69081/1 "2016-12-14T20:40:55Z")

</div>

Hi ,

To which location index templates get stored. Also, how to create only mapping template and the location to which it has to be stored. I'm currently using elasticserach 2.4.

Thanks

---

<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:** [December 14, 2016, 9:31pm UTC](https://discuss.elastic.co/t/what-is-the-location-of-mapping-template/69081/2 "2016-12-14T21:31:09Z")

</div>

It gets stored in the cluster, in cluster state.

---

<div class="post-metadata">

**Author:** ![saisn](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@saisn](https://discuss.elastic.co/u/saisn)\
**Post date:** [December 14, 2016, 9:35pm UTC](https://discuss.elastic.co/t/what-is-the-location-of-mapping-template/69081/3 "2016-12-14T21:35:16Z")

</div>

So, if i have to migrate all my stuff to new cluster what is the process to transfer these templates?

---

<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:** [December 14, 2016, 9:49pm UTC](https://discuss.elastic.co/t/what-is-the-location-of-mapping-template/69081/4 "2016-12-14T21:49:23Z")

</div>

How are you migrating?

---

<div class="post-metadata">

**Author:** ![saisn](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@saisn](https://discuss.elastic.co/u/saisn)\
**Post date:** [December 14, 2016, 10:57pm UTC](https://discuss.elastic.co/t/what-is-the-location-of-mapping-template/69081/5 "2016-12-14T22:57:32Z")

</div>

We haven't planned on it. But, if i have to reuse all these templates on another cluster what should i do!

---

<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:** [December 14, 2016, 11:28pm UTC](https://discuss.elastic.co/t/what-is-the-location-of-mapping-template/69081/6 "2016-12-14T23:28:12Z")

</div>

Get them from the API and then re-upload them would be easiest.

---

<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:** [January 11, 2017, 11:28pm UTC](https://discuss.elastic.co/t/what-is-the-location-of-mapping-template/69081/7 "2017-01-11T23:28:22Z")

</div>

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