|
@@ -12,7 +12,7 @@ the same pattern:
|
|
|
"params": { ... } <3>
|
|
|
}
|
|
|
-------------------------------------
|
|
|
-<1> The language the script is written in, which defaults to `groovy`.
|
|
|
+<1> The language the script is written in, which defaults to `painless`.
|
|
|
<2> The script itself which may be specfied as `inline`, `id`, or `file`.
|
|
|
<3> Any named parameters that should be passed into the script.
|
|
|
|
|
@@ -201,6 +201,7 @@ POST _scripts/groovy/calculate-score
|
|
|
}
|
|
|
-----------------------------------
|
|
|
// CONSOLE
|
|
|
+// TEST[warning:Groovy scripts are deprecated. Use Painless scripts instead.]
|
|
|
|
|
|
This same script can be retrieved with:
|
|
|
|