- Elasticsearch 7.0 Cookbook(Fourth Edition)
- Alberto Paro
- 75字
- 2021-06-24 14:52:30
Updating a document
Documents stored in Elasticsearch can be updated during their lives. There are two available solutions for performing this operation in Elasticsearch: adding a new document, or using the update call.
The update call can work in two ways:
- By providing a script that uses the update strategy
- By providing a document that must be merged with the original one
The main advantage of an update versus an index is the networking reduction.