[DOCS] Refer back to index API for full-document updates in _update API section (#28677)

This clarifies how full-document updates are performed in ES.
This commit is contained in:
Yannick Welsch 2018-04-03 13:53:15 +02:00 committed by GitHub
parent 080cefec73
commit 3be98edc69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -118,8 +118,11 @@ POST test/_doc/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]
--------------------------------------------------