# Mapping for a type?

**URL:** <https://discuss.elastic.co/t/mapping-for-a-type/12841>\
**Category:** Elasticsearch\
**Created:** [July 18, 2013, 1:08pm UTC](https://discuss.elastic.co/t/mapping-for-a-type/12841 "2013-07-18T13:08:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zato](https://avatars.discourse-cdn.com/v4/letter/z/dbc845/32.png) [@zato](https://discuss.elastic.co/u/zato)\
**Post date:** [July 18, 2013, 1:08pm UTC](https://discuss.elastic.co/t/mapping-for-a-type/12841/1 "2013-07-18T13:08:08Z")

</div>

Hi all,  
I have an index, htldb, and it has two types, facebook and twitter.  
I want to change twitter's mapping, as I learn from there:

> **[Changing Mapping with Zero Downtime
	  	 | Elastic](https://www.elastic.co/blog/changing-mapping-with-zero-downtime)**
>
> Update November 2, 2015: Make sure to check out the updates with Elasticsearch mappings introduced in the 2.0 release.Update May 1, 2017: This blog was originally published several major versions...

  
I must change mapping of htldb, and reindex facebook and twitter.

Im curious about that, is there any way to implement a alias for types. so, I just create a new type twitter\_v2 and get all data from the old one, twitter then remove twitter. At the end I set an alias named "twitter" to twitter\_v2, so I can reach twitter\_v2 with twitter type name.

Before writing this post, I searched it on the forum, and I found this:  
[http://elasticsearch-users.115913.n3.nabble.com/Alias-for-types-td3282044.html](http://elasticsearch-users.115913.n3.nabble.com/Alias-for-types-td3282044.html)

kimchy recommended to create new indices for each type. It is reasonable,but as he mentioned, it costs me extra spaces.  
Sorry about the word salad, my question is the solution,recomended above still valid one? is there a new way to create alias for types?

Thanks,  
Zafer

---

<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, 2:25am UTC](https://discuss.elastic.co/t/mapping-for-a-type/12841/2 "2017-07-06T02:25:44Z")

</div>


