Browse Source

Fixed a doc test.

Jack Conradson 9 years ago
parent
commit
2b9c3a1a98
1 changed files with 2 additions and 1 deletions
  1. 2 1
      docs/reference/modules/scripting/using.asciidoc

+ 2 - 1
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: