# Can I Update the Index structure?

**URL:** <https://discuss.elastic.co/t/can-i-update-the-index-structure/62792>\
**Category:** Elasticsearch\
**Created:** [October 12, 2016, 9:14am UTC](https://discuss.elastic.co/t/can-i-update-the-index-structure/62792 "2016-10-12T09:14:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sukesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sukesh/32/10890_2.png) [@sukesh](https://discuss.elastic.co/u/sukesh)\
**Post date:** [October 12, 2016, 9:14am UTC](https://discuss.elastic.co/t/can-i-update-the-index-structure/62792/1 "2016-10-12T09:14:02Z")

</div>

Hi guys,

i have an index called facebook ,have some types called user1,user2,user3 in that with some data. Now i want to add the new type called user4 in the existing index . is it possible ? if it is please suggest me.

---

<div class="post-metadata">

**Author:** ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)\
**Post date:** [October 12, 2016, 9:34am UTC](https://discuss.elastic.co/t/can-i-update-the-index-structure/62792/2 "2016-10-12T09:34:00Z")

</div>

You can add mappings to a new type by using the [Put Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html). Be aware that you cannot change existing mappings. Also if you use the same fieldname in two different types, they need to have the same mapping (see section "Conflicts between fields in different types"). Elasticsearch 2.x will complain if you have a conflict and won't let you add the conflicting mapping, but Elasticsearch 1.x won't but might show unexpected and weird behaviour if you do so.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 12, 2016, 9:34am UTC](https://discuss.elastic.co/t/can-i-update-the-index-structure/62792/3 "2016-10-12T09:34:18Z")

</div>

See [https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html).

---

<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, 2017, 10:13pm UTC](https://discuss.elastic.co/t/can-i-update-the-index-structure/62792/4 "2017-07-05T22:13:04Z")

</div>


