1

I would like to do a partial update of a document in ElasticSearch 2.3. The documentation shows:

POST /website/blog/1/_update
{
   "doc" : {
      "tags" : [ "testing" ],
      "views": 0
   }
}

Is there a way to update a document using another field other than the _id (here 1) to identify the document?

1 Answer 1

1

Use update_by_query API and run a query which will select the documents that match the other field that you want. Basically, with that query you identify the documents you want to update following your own rules.

Sign up to request clarification or add additional context in comments.

1 Comment

I am glad to have upgraded to ElasticSearch 2.3 recently as it is a new feature !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.