# How to modify a mapping?

**URL:** <https://discuss.elastic.co/t/how-to-modify-a-mapping/6508>\
**Category:** Elasticsearch\
**Created:** [January 26, 2012, 7:02am UTC](https://discuss.elastic.co/t/how-to-modify-a-mapping/6508 "2012-01-26T07:02:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![diagnostix](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@diagnostix](https://discuss.elastic.co/u/diagnostix)\
**Post date:** [January 26, 2012, 7:02am UTC](https://discuss.elastic.co/t/how-to-modify-a-mapping/6508/1 "2012-01-26T07:02:09Z")

</div>

hi

I can't seem to modify an existing mapping. Whenever I send the PUT command via curl, I'll get back an error saying merge failed. In this case I was trying to change the search analyzer.

{"error":"RemoteTransportException[[Gamora][inet[/10.32.139.142:9300]][indices/mapping/put]]; nested: MergeMappingException[Merge failed with failures {[mapper [tags] has different index\_analyzer, mapper [tags] has different search\_analyzer]}]; ","status":400}

I think I must be missing a trick somewhere. The only I've managed to change the mapping is to delete the whole mapping and recreate it all again.

Is there a way just to modify an existing mapping? anyone can help?

Thanks

D.

---

<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, 3:41am UTC](https://discuss.elastic.co/t/how-to-modify-a-mapping/6508/2 "2017-07-06T03:41:25Z")

</div>


