Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.13] [DOCS] Rename example stored script (#83054) #83063

Merged
merged 1 commit into from
Jan 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions docs/reference/ingest.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ You can also specify a <<modules-scripting-stored-scripts,stored script>> as the

[source,console]
----
PUT _scripts/my-stored-script
PUT _scripts/my-prod-tag-script
{
"script": {
"lang": "painless",
Expand All @@ -858,13 +858,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
Expand Down