Updating the details for the Upsert operation when the document already exists. (#5025)
* Updated the details for the Upsert operation when the document already exists. * Update _api-reference/document-apis/update-document.md Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> --------- Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
This commit is contained in:
parent
e28942d1c1
commit
2cf306897d
|
@ -92,7 +92,7 @@ You can also use a script to tell OpenSearch how to update your document.
|
|||
|
||||
### Upsert
|
||||
|
||||
Upsert is an operation that conditionally either updates an existing document or inserts a new one based on information in the object. In the sample below, the `upsert` object updates the last name and adds the `age` field if a document already exists. If a document does not exist, a new one is indexed using content in the `upsert` object.
|
||||
Upsert is an operation that conditionally either updates an existing document or inserts a new one based on information in the object. In the following example, the `upsert` operation updates the `last name` and adds the `first_name` field if a document already exists. If a document does not exist, a new one is indexed using content in the `upsert` object.
|
||||
|
||||
```json
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue