how to change the store value of a field

classic Classic list List threaded Threaded
3 messages Options
abr
Reply | Threaded
Open this post in threaded view
|

how to change the store value of a field

abr
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 [hidden email].
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.
Antoine Brun
Reply | Threaded
Open this post in threaded view
|

Re: how to change the store value of a field

dadoonet
No you need to reindex 

--
David ;-)
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 avr. 2015 à 17:52, Antoine Brun <[hidden email]> 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 [hidden email].
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: how to change the store value of a field

Antoine Brun
merci!

On Thu, Apr 16, 2015 at 7:11 PM, David Pilato <[hidden email]> wrote:
No you need to reindex 

--
David ;-)
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 avr. 2015 à 17:52, Antoine Brun <[hidden email]> 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 [hidden email].
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 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 [hidden email].
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.



--
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 [hidden email].
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.