# Can't update mappings

**URL:** <https://discuss.elastic.co/t/cant-update-mappings/3152>\
**Category:** Elasticsearch\
**Created:** [July 26, 2010, 7:06pm UTC](https://discuss.elastic.co/t/cant-update-mappings/3152 "2010-07-26T19:06:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Chang](https://avatars.discourse-cdn.com/v4/letter/j/ecc23a/32.png) [@John\_Chang](https://discuss.elastic.co/u/John_Chang)\
**Post date:** [July 26, 2010, 7:06pm UTC](https://discuss.elastic.co/t/cant-update-mappings/3152/1 "2010-07-26T19:06:37Z")

</div>

Hello, I am having trouble updating mappings. I have read:  
[http://www.elasticsearch.com/docs/elasticsearch/rest\_api/admin/indices/put\_mapping/](http://www.elasticsearch.com/docs/elasticsearch/rest_api/admin/indices/put_mapping/)  
and the "Doubt on updating mappings" article in the forum.

I want to change a field from being not stored to stored. I tried to re-run the the json mapping (with the update) through curl , and I keep getting:  
{"error":"Merge failed with failures [[Mapper [receivedDate] exists, can't merge]]"}

To update a mapping, do I just re-run the same mappings json I used to create the mappings (with the changes)? (That is what I'm trying and it is not working.) If not, what do I do?

Also, it is not clear to me where I put the ignore\_conflicts param. Is that what I need? I wasn't sure on what level of the json tp put it in. If that is what I need, could you please give a little more information about where to drop it into the json or the url?

Thanks,  
John

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [July 26, 2010, 7:40pm UTC](https://discuss.elastic.co/t/cant-update-mappings/3152/2 "2010-07-26T19:40:57Z")

</div>

You can't change a field form not being stored to being stored. ignore  
conflicts will simply ignore this conflict, but not apply it. You will need  
to reindex your index.

-shay.banon

On Mon, Jul 26, 2010 at 10:06 PM, John Chang [jchangkihtest2@gmail.com](mailto:jchangkihtest2@gmail.com)wrote:

> Hello, I am having trouble updating mappings. I have read:
> 
> [http://www.elasticsearch.com/docs/elasticsearch/rest\_api/admin/indices/put\_mapping/](http://www.elasticsearch.com/docs/elasticsearch/rest_api/admin/indices/put_mapping/)  
> and the "Doubt on updating mappings" article in the forum.
> 
> I want to change a field from being not stored to stored. I tried to  
> re-run  
> the the json mapping (with the update) through curl , and I keep getting:  
> {"error":"Merge failed with failures [[Mapper [receivedDate] exists, can't  
> merge]]"}
> 
> To update a mapping, do I just re-run the same mappings json I used to  
> create the mappings (with the changes)? (That is what I'm trying and it is  
> not working.) If not, what do I do?
> 
> Also, it is not clear to me where I put the ignore\_conflicts param. Is  
> that  
> what I need? I wasn't sure on what level of the json tp put it in. If  
> that  
> is what I need, could you please give a little more information about where  
> to drop it into the json or the url?
> 
> ## Thanks, John
> 
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/can-t-update-mappings-tp997221p997221.html](http://elasticsearch-users.115913.n3.nabble.com/can-t-update-mappings-tp997221p997221.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<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, 4:21am UTC](https://discuss.elastic.co/t/cant-update-mappings/3152/3 "2017-07-06T04:21:36Z")

</div>


