Skip to content

Commit

Permalink
[DOCS] Refer back to index API for full-document updates in _update A…
Browse files Browse the repository at this point in the history
…PI section (#28677)

This clarifies how full-document updates are performed in ES.
  • Loading branch information
ywelsch committed Apr 3, 2018
1 parent 4fddb70 commit 2242d69
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/reference/docs/update.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,11 @@ POST test/type1/1/_update

The update API also support passing a partial document,
which will be merged into the existing document (simple recursive merge,
inner merging of objects, replacing core "keys/values" and arrays). For
example:
inner merging of objects, replacing core "keys/values" and arrays).
To fully replace the existing document, the <<docs-index_,`index` API>> should
be used instead.
The following partial update adds a new field to the
existing document:

[source,js]
--------------------------------------------------
Expand Down

0 comments on commit 2242d69

Please sign in to comment.