From 5545bd7f81edb248b1bdaf50e20f438c889a6cbd Mon Sep 17 00:00:00 2001 From: James Rodewig <40268737+jrodewig@users.noreply.github.com> Date: Tue, 25 Jan 2022 09:47:06 -0500 Subject: [PATCH] [DOCS] Rename example stored script --- docs/reference/ingest.asciidoc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/reference/ingest.asciidoc b/docs/reference/ingest.asciidoc index fa4308ba9a155..4c4b1b5872f16 100644 --- a/docs/reference/ingest.asciidoc +++ b/docs/reference/ingest.asciidoc @@ -848,7 +848,7 @@ You can also specify a <> as the [source,console] ---- -PUT _scripts/my-stored-script +PUT _scripts/my-prod-tag-script { "script": { "lang": "painless", @@ -872,13 +872,21 @@ PUT _ingest/pipeline/my-pipeline { "drop": { "description": "Drop documents that don't contain 'prod' tag", - "if": { "id": "my-stored-script" } + "if": { "id": "my-prod-tag-script" } } } ] } ---- +//// +[source,console] +---- +DELETE _scripts/my-prod-tag-script +---- +// TEST[continued] +//// + Incoming documents often contain object fields. If a processor script attempts to access a field whose parent object does not exist, {es} returns a `NullPointerException`. To avoid these exceptions, use