From 76225e890654dbc7e21db749e451f37b31f4b96e Mon Sep 17 00:00:00 2001 From: Robin Schneider Date: Tue, 28 Jul 2026 13:33:45 +0200 Subject: [PATCH] fix: doc_as_update does not exist in bulk update, doc_as_upsert is meant 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 --- _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 5cf17eb5b9..af0049d636 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" } }