From 5bac1aa4b3ebdea635f1b6bc7455dfdf844fd27c Mon Sep 17 00:00:00 2001 From: Robin Schneider Date: Tue, 28 Jul 2026 15:24:48 +0200 Subject: [PATCH] fix: doc_as_update does not exist in bulk update, doc_as_upsert is meant (#12865) doc_as_update is not used by neither OpenSearch [1] nor Elastic [2]. [1]: https://github.com/search?q=org%3Aopensearch-project%20doc_as_update&type=code [2]: https://github.com/search?q=repo%3Aelastic%2Fecs%20doc_as_update&type=code Introduced in: https://github.com/opensearch-project/documentation-website/pull/11506 Introduced in: fc5976cd95d4812656d4f8c1f6a347ff67f4f6f9 Signed-off-by: Robin Schneider (cherry picked from commit 9f78096c07dbf57469692dfe9fa889d9ab71225f) Signed-off-by: opensearch-ci-bot --- _api-reference/document-apis/bulk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_api-reference/document-apis/bulk.md b/_api-reference/document-apis/bulk.md index 6b9358dd83b..9ba52d82f47 100644 --- a/_api-reference/document-apis/bulk.md +++ b/_api-reference/document-apis/bulk.md @@ -360,7 +360,7 @@ To upsert a document, use one of the following options: { "update": { "_index": "movies", "_id": "tt0816711" } } { "doc" : { "title": "World War Z" }, "doc_as_upsert": true } ``` -1. Specify the document to update (when it exists) in the `doc` field, the document to insert (when it doesn't exist) in the `upsert` field, and leave `doc_as_update` set to `false`: +1. Specify the document to update (when it exists) in the `doc` field, the document to insert (when it doesn't exist) in the `upsert` field, and leave `doc_as_upsert` set to `false`: ```json { "update": { "_index": "products", "_id": "widget-123" } }