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.