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

[DOCS] Improve/fix documentation on stored scripts #119921

Merged
merged 6 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from 2 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
11 changes: 9 additions & 2 deletions docs/reference/scripting/using.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,15 @@ when you're creating <<runtime-mapping-fields,runtime fields>>.
[[script-stored-scripts]]
=== Store and retrieve scripts
You can store and retrieve scripts from the cluster state using the
<<stored-script-apis,stored script APIs>>. Stored scripts reduce compilation
time and make searches faster.
<<stored-script-apis,stored script APIs>>. Stored scripts make it easier for
several people to collaborate on queries that involve scripting. The
person in charge of writing the queries can simply reference scripts (for
scoring, aggregating, filtering, reindexing, etc) written by another person
instead of inlining them within the queries.
consulthys marked this conversation as resolved.
Show resolved Hide resolved

Stored scripts also contribute to reducing the request payload. Depending
on the size of the scripts and the frequency of the requests, that can
help lowering the request latency and data transfer costs.
consulthys marked this conversation as resolved.
Show resolved Hide resolved

NOTE: Unlike regular scripts, stored scripts require that you specify a script
language using the `lang` parameter.
Expand Down
Loading
Loading