partial

Partial update a document

/ update, / partial, / index

Partial update a document # Sometimes we may only need to update a portion fields of the document. Examples # Update the org.id field of the document news_001 in the collection my-collection: PUT /my-collection/_doc/news_001/_update { "sync":{ "replace":{ "org": { "id": "infinilabs" } } } } The API returns as following result: {"_id":"0,0", "_key":"news_001", "result":"updated"} Pizza using the method of fetching a document, then merging partial updates and replacing it. ...