# How to change the store value of a field

**URL:** <https://discuss.elastic.co/t/how-to-change-the-store-value-of-a-field/23283>\
**Category:** Elasticsearch\
**Created:** [April 16, 2015, 3:52pm UTC](https://discuss.elastic.co/t/how-to-change-the-store-value-of-a-field/23283 "2015-04-16T15:52:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abr](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@abr](https://discuss.elastic.co/u/abr)\
**Post date:** [April 16, 2015, 3:52pm UTC](https://discuss.elastic.co/t/how-to-change-the-store-value-of-a-field/23283/1 "2015-04-16T15:52:59Z")

</div>

Hello,

is there any simple way to update a mapping and change the store value of a  
field?  
I'm trying to enable \_timestamp:  
curl -X PUT [http://localhost:9200/ubilogs-mbr/\_mappings/logs](http://localhost:9200/ubilogs-mbr/_mappings/logs) -d '{  
"logs" : {  
"\_timestamp" : {  
"enabled" : true,  
"store" : true,  
"format": "YYYY-MM-dd HH:mm:ss.SSS"  
}  
}  
}'

but I get

{"error":"MergeMappingException[Merge failed with failures {[mapper  
[\_timestamp] has different store values]}]","status":400}

Antoine

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d19ba2b2-0371-4495-8886-b0250f48463f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d19ba2b2-0371-4495-8886-b0250f48463f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [April 16, 2015, 5:11pm UTC](https://discuss.elastic.co/t/how-to-change-the-store-value-of-a-field/23283/2 "2015-04-16T17:11:15Z")

</div>

No you need to reindex

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

> Le 16 avr. 2015 à 17:52, Antoine Brun [abr@ubiqube.com](mailto:abr@ubiqube.com) a écrit :
> 
> Hello,
> 
> is there any simple way to update a mapping and change the store value of a field?  
> I'm trying to enable \_timestamp:  
> curl -X PUT [http://localhost:9200/ubilogs-mbr/\_mappings/logs](http://localhost:9200/ubilogs-mbr/_mappings/logs) -d '{  
> "logs" : {  
> "\_timestamp" : {  
> "enabled" : true,  
> "store" : true,  
> "format": "YYYY-MM-dd HH:mm:ss.SSS"  
> }  
> }  
> }'
> 
> but I get
> 
> {"error":"MergeMappingException[Merge failed with failures {[mapper [\_timestamp] has different store values]}]","status":400}
> 
> Antoine
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d19ba2b2-0371-4495-8886-b0250f48463f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d19ba2b2-0371-4495-8886-b0250f48463f%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/E404E4DF-DCF4-409C-97B0-425FFB2501C6%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/E404E4DF-DCF4-409C-97B0-425FFB2501C6%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Antoine\_Brun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/antoine_brun/32/3774_2.png) [@Antoine\_Brun](https://discuss.elastic.co/u/Antoine_Brun)\
**Post date:** [April 16, 2015, 7:03pm UTC](https://discuss.elastic.co/t/how-to-change-the-store-value-of-a-field/23283/3 "2015-04-16T19:03:44Z")

</div>

merci!

On Thu, Apr 16, 2015 at 7:11 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> No you need to reindex
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 16 avr. 2015 à 17:52, Antoine Brun [abr@ubiqube.com](mailto:abr@ubiqube.com) a écrit :
> 
> Hello,
> 
> is there any simple way to update a mapping and change the store value of  
> a field?  
> I'm trying to enable \_timestamp:  
> curl -X PUT [http://localhost:9200/ubilogs-mbr/\_mappings/logs](http://localhost:9200/ubilogs-mbr/_mappings/logs) -d '{  
> "logs" : {  
> "\_timestamp" : {  
> "enabled" : true,  
> "store" : true,  
> "format": "YYYY-MM-dd HH:mm:ss.SSS"  
> }  
> }  
> }'
> 
> but I get
> 
> {"error":"MergeMappingException[Merge failed with failures {[mapper  
> [\_timestamp] has different store values]}]","status":400}
> 
> Antoine
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/d19ba2b2-0371-4495-8886-b0250f48463f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d19ba2b2-0371-4495-8886-b0250f48463f%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/d19ba2b2-0371-4495-8886-b0250f48463f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/d19ba2b2-0371-4495-8886-b0250f48463f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/Wchqq-E1o4Y/unsubscribe](https://groups.google.com/d/topic/elasticsearch/Wchqq-E1o4Y/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/E404E4DF-DCF4-409C-97B0-425FFB2501C6%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/E404E4DF-DCF4-409C-97B0-425FFB2501C6%40pilato.fr)  
> [https://groups.google.com/d/msgid/elasticsearch/E404E4DF-DCF4-409C-97B0-425FFB2501C6%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/E404E4DF-DCF4-409C-97B0-425FFB2501C6%40pilato.fr?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Antoine

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGUV-q\_LBQO87%2B%3DgJj7hU1J1rcUWcazGpea4c8RaAoG%2BdQJf1g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGUV-q_LBQO87%2B%3DgJj7hU1J1rcUWcazGpea4c8RaAoG%2BdQJf1g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:19am UTC](https://discuss.elastic.co/t/how-to-change-the-store-value-of-a-field/23283/4 "2017-07-06T00:19:14Z")

</div>

Closed on July 6, 2017, 12:19am UTC


