# How to change mapping name?

**URL:** <https://discuss.elastic.co/t/how-to-change-mapping-name/14986>\
**Category:** Elasticsearch\
**Created:** [December 21, 2013, 9:36pm UTC](https://discuss.elastic.co/t/how-to-change-mapping-name/14986 "2013-12-21T21:36:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sada](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@sada](https://discuss.elastic.co/u/sada)\
**Post date:** [December 21, 2013, 9:36pm UTC](https://discuss.elastic.co/t/how-to-change-mapping-name/14986/1 "2013-12-21T21:36:37Z")

</div>

Hi!  
After reindex I have a new name index and mapping (type).  
To use the old name of the index, i can add aliases.  
Is it possible to easily change the mapping name (type)?

---

<div class="post-metadata">

**Author:** ![sada](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@sada](https://discuss.elastic.co/u/sada)\
**Post date:** [December 24, 2013, 8:38am UTC](https://discuss.elastic.co/t/how-to-change-mapping-name/14986/2 "2013-12-24T08:38:42Z")

</div>

--  
View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/How-to-change-mapping-name-tp4046546p4046629.html](http://elasticsearch-users.115913.n3.nabble.com/How-to-change-mapping-name-tp4046546p4046629.html)  
Sent from the ElasticSearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1387874322066-4046629.post%40n3.nabble.com](https://groups.google.com/d/msgid/elasticsearch/1387874322066-4046629.post%40n3.nabble.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 28, 2013, 1:32pm UTC](https://discuss.elastic.co/t/how-to-change-mapping-name/14986/3 "2013-12-28T13:32:55Z")

</div>

No. You can't.  
You have to reindex old data with the new type.

I would recommend to do it in a new index and then remove the old index.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 21 déc. 2013 à 22:36, sada [zpogrim@gmail.com](mailto:zpogrim@gmail.com) a écrit :

Hi!  
After reindex I have a new name index and mapping (type).  
To use the old name of the index, i can add aliases.  
Is it possible to easily change the mapping name (type)?

--  
View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/How-to-change-mapping-name-tp4046546.html](http://elasticsearch-users.115913.n3.nabble.com/How-to-change-mapping-name-tp4046546.html)  
Sent from the ElasticSearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1387661797486-4046546.post%40n3.nabble.com](https://groups.google.com/d/msgid/elasticsearch/1387661797486-4046546.post%40n3.nabble.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8949DFF0-C95A-4FD3-B487-54CB487C8629%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/8949DFF0-C95A-4FD3-B487-54CB487C8629%40pilato.fr).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 1:59am UTC](https://discuss.elastic.co/t/how-to-change-mapping-name/14986/4 "2017-07-06T01:59:10Z")

</div>


