Skip to content

Commit eb1a6b5

Browse files
[DOCS] Improve/fix documentation on stored scripts (elastic#119921)
* Improve/fix documentation on stored scripts * Update docs/reference/scripting/using.asciidoc Co-authored-by: Liam Thompson <[email protected]> * Update docs/reference/scripting/using.asciidoc Co-authored-by: Liam Thompson <[email protected]> * Update docs/reference/transform/painless-examples.asciidoc Co-authored-by: Liam Thompson <[email protected]> --------- Co-authored-by: Liam Thompson <[email protected]> (cherry picked from commit 1e608dc)
1 parent 213f7a6 commit eb1a6b5

File tree

2 files changed

+110
-105
lines changed

2 files changed

+110
-105
lines changed

docs/reference/scripting/using.asciidoc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,13 @@ when you're creating <<runtime-mapping-fields,runtime fields>>.
201201
[[script-stored-scripts]]
202202
=== Store and retrieve scripts
203203
You can store and retrieve scripts from the cluster state using the
204-
<<stored-script-apis,stored script APIs>>. Stored scripts reduce compilation
205-
time and make searches faster.
204+
<<stored-script-apis,stored script APIs>>. Stored scripts allow you to reference
205+
shared scripts for operations like scoring, aggregating, filtering, and
206+
reindexing. Instead of embedding scripts inline in each query, you can reference
207+
these shared operations.
208+
209+
Stored scripts can also reduce request payload size. Depending on script size
210+
and request frequency, this can help lower latency and data transfer costs.
206211

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

0 commit comments

Comments
 (0)