# Altering mapping of index without reindexing

**URL:** https://discuss.elastic.co/t/altering-mapping-of-index-without-reindexing/220998
**Category:** Elasticsearch
**Created:** [February 26, 2020, 9:51am UTC](https://discuss.elastic.co/t/altering-mapping-of-index-without-reindexing/220998 "2020-02-26T09:51:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![naveenbangalore](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@naveenbangalore](https://discuss.elastic.co/u/naveenbangalore)
#### Post date: [February 26, 2020, 9:51am UTC](https://discuss.elastic.co/t/altering-mapping-of-index-without-reindexing/220998/1 "2020-02-26T09:51:27Z")

</div>

Hi,  
I have an index field "Field1" of string data type. Let's call this index IND-001.  
In the subsequent index IND-002, the data type/mapping of this field "Field1" has been changed to type long. This has now resulted in a conflict.  
All the documents related to "Field1" have been deleted in IND-001 using DSL query. Is it possible to alter/remove the mapping of the index IND-001 without reindexing as all the docs involving the field "Field1" have now been deleted? If not, would this qualify as a worthy feature request?

---

<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: [February 26, 2020, 11:15am UTC](https://discuss.elastic.co/t/altering-mapping-of-index-without-reindexing/220998/2 "2020-02-26T11:15:35Z")

</div>

It's not possible. You need to reindex.

AppSearch does that though. You can change the mapping. But behind the scene it also reindex the index.

---

<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 25, 2020, 11:15am UTC](https://discuss.elastic.co/t/altering-mapping-of-index-without-reindexing/220998/3 "2020-03-25T11:15:38Z")

</div>

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