From d0a30bdf9588ef0414b031889cfc82e2c30518e2 Mon Sep 17 00:00:00 2001 From: "leanne.laceybyrne@eliatra.com" Date: Mon, 17 Jun 2024 11:17:43 +0100 Subject: [PATCH 1/2] adding one liner to explain script can be defined with source or id Signed-off-by: leanne.laceybyrne@eliatra.com --- _api-reference/document-apis/bulk.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_api-reference/document-apis/bulk.md b/_api-reference/document-apis/bulk.md index d00230819d..17799a4fbf 100644 --- a/_api-reference/document-apis/bulk.md +++ b/_api-reference/document-apis/bulk.md @@ -123,7 +123,9 @@ All actions support the same metadata: `_index`, `_id`, and `_require_alias`. If { "doc" : { "title": "World War Z" }, "doc_as_upsert": true } ``` - You can specify a script for more complex document updates: + You can specify a script for more complex document updates and define the script with `source` or `id`. + + - Script ```json From 6f5a8e7f834da25cadb8962ee6933b6632653449 Mon Sep 17 00:00:00 2001 From: leanneeliatra <131779422+leanneeliatra@users.noreply.github.com> Date: Wed, 26 Jun 2024 14:34:58 +0100 Subject: [PATCH 2/2] Update _api-reference/document-apis/bulk.md Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Signed-off-by: leanneeliatra <131779422+leanneeliatra@users.noreply.github.com> --- _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 ed791960c8..a020fc459d 100644 --- a/_api-reference/document-apis/bulk.md +++ b/_api-reference/document-apis/bulk.md @@ -124,7 +124,7 @@ All actions support the same metadata: `_index`, `_id`, and `_require_alias`. If { "doc" : { "title": "World War Z" }, "doc_as_upsert": true } ``` - You can specify a script for more complex document updates and define the script with `source` or `id`. + You can specify a script for more complex document updates by defining the script with the `source` or `id` from a document: