Only update a single field in existing document


(bf24) #1

I did some searching and found a couple threads that were similar, but not exactly what I'm trying to do. I would like to update one field of an existing document and reindex this new value of the field while keeping all existing fields the same. Is this possible?

$ curl -XPUT 'http://localhost:9200/twitter/tweet/1' -d '{
"user" : "kimchy",
"post_date" : "2009-11-15T14:12:12",
"message" : "trying out Elastic Search",
"recent_retweet" : "hope it works out"
}'

$ curl -XPUT 'http://localhost:9200/twitter/tweet/1' -d '{
"recent_retweet" : "awesome man, good luck"
}'


(system) #2