From 2b9c3a1a98dab2250a7f1007f05594e5d614b179 Mon Sep 17 00:00:00 2001 From: Jack Conradson Date: Tue, 30 Aug 2016 16:51:37 -0700 Subject: [PATCH] Fixed a doc test. --- docs/reference/modules/scripting/using.asciidoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/reference/modules/scripting/using.asciidoc b/docs/reference/modules/scripting/using.asciidoc index 0c29f82b4d4..5f925bc7058 100644 --- a/docs/reference/modules/scripting/using.asciidoc +++ b/docs/reference/modules/scripting/using.asciidoc @@ -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: