Skip to content

Commit 2bc9ac6

Browse files
authored
[DOCS] Rename example stored script (#83054) (#83065)
Changes: * Renames the example stored script to avoid naming collisions with the [stored script API docs](https://www.elastic.co/guide/en/elasticsearch/reference/master/create-stored-script-api.html). * Adds a hidden snippet to delete the script for cleanup. Relates to #83038 (cherry picked from commit b413971) # Conflicts: # docs/reference/ingest.asciidoc
1 parent c01545e commit 2bc9ac6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docs/reference/ingest.asciidoc

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ You can also specify a <<modules-scripting-stored-scripts,stored script>> as the
646646

647647
[source,console]
648648
----
649-
PUT _scripts/my-stored-script
649+
PUT _scripts/my-prod-tag-script
650650
{
651651
"script": {
652652
"lang": "painless",
@@ -669,13 +669,21 @@ PUT _ingest/pipeline/my-pipeline
669669
"processors": [
670670
{
671671
"drop": {
672-
"if": { "id": "my-stored-script" }
672+
"if": { "id": "my-prod-tag-script" }
673673
}
674674
}
675675
]
676676
}
677677
----
678678

679+
////
680+
[source,console]
681+
----
682+
DELETE _scripts/my-prod-tag-script
683+
----
684+
// TEST[continued]
685+
////
686+
679687
Incoming documents often contain object fields. If a processor script attempts
680688
to access a field whose parent object does not exist, {es} returns a
681689
`NullPointerException`. To avoid these exceptions, use

0 commit comments

Comments
 (0)