Skip to content

Commit 8061d8d

Browse files
committed
[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.
1 parent 0f4dfc2 commit 8061d8d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/reference/docs/update.asciidoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,11 @@ POST test/_doc/1/_update
118118

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

124127
[source,js]
125128
--------------------------------------------------

0 commit comments

Comments
 (0)