Skip to content
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.

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.

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