How to change the store value of a field

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 -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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/d19ba2b2-0371-4495-8886-b0250f48463f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No you need to reindex

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

Le 16 avr. 2015 à 17:52, Antoine Brun 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 -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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/d19ba2b2-0371-4495-8886-b0250f48463f%40googlegroups.com.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/E404E4DF-DCF4-409C-97B0-425FFB2501C6%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

merci!

On Thu, Apr 16, 2015 at 7:11 PM, David Pilato david@pilato.fr wrote:

No you need to reindex

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

Le 16 avr. 2015 à 17:52, Antoine Brun 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 -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.
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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To unsubscribe from this group and all its topics, send an email to
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?utm_medium=email&utm_source=footer
.

For more options, visit 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.
To view this discussion on the web visit 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.