October 2019
Beginner
186 pages
5h 39m
English
To use the update API, use the _update parameter containing the required script changes. The parameters that can be used are _index, _type, _id, _version, _routing, and _now.
An update using a partial document will add the partial document fields to an existing document:
POST test_index/_doc/1/_update{ "doc": { "user": "anurag" }}
We can update the document using the preceding command.
Read now
Unlock full access