1
1
[[modules-scripting]]
2
- == Scripting
2
+ = Scripting
3
3
4
- The scripting module enables you to use scripts to evaluate custom
5
- expressions. For example, you could use a script to return "script fields"
6
- as part of a search request or evaluate a custom score for a query.
4
+ [partintro]
5
+ --
6
+ With scripting, you can evaluate custom expressions in {es}. For example, you
7
+ could use a script to return "script fields" as part of a search request or
8
+ evaluate a custom score for a query.
7
9
8
10
The default scripting language is <<modules-scripting-painless, `Painless`>>.
9
11
Additional `lang` plugins enable you to run scripts written in other languages.
10
12
Everywhere a script can be used, you can include a `lang` parameter
11
13
to specify the language of the script.
12
14
13
15
[float]
14
- === General-purpose languages:
16
+ == General-purpose languages
15
17
16
18
These languages can be used for any purpose in the scripting APIs,
17
19
and give the most flexibility.
@@ -29,7 +31,7 @@ and give the most flexibility.
29
31
|=======================================================================
30
32
31
33
[float]
32
- === Special-purpose languages:
34
+ == Special-purpose languages
33
35
34
36
These languages are less flexible, but typically have higher performance for
35
37
certain tasks.
@@ -67,7 +69,7 @@ sandboxed languages can be a security issue, please read
67
69
<<modules-scripting-security, Scripting and security>> for more details.
68
70
69
71
=================================================
70
-
72
+ --
71
73
72
74
include::scripting/using.asciidoc[]
73
75
0 commit comments