Browse Source

Fix old name of script context in docs (#45410)

The docs contain an example how to limit the scripting contexts allowed,
but the example used an outdated name for the scoring context.

closes #44232
Ryan Ernst 6 years ago
parent
commit
18c537652f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/reference/scripting/security.asciidoc

+ 2 - 2
docs/reference/scripting/security.asciidoc

@@ -101,7 +101,7 @@ to be `none`.
 
 [source,yaml]
 ----
-script.allowed_contexts: search, update <1>
+script.allowed_contexts: score, update <1>
 ----
-<1> This will allow only search and update scripts to be executed but not
+<1> This will allow only scoring and update scripts to be executed but not
 aggs or plugin scripts (or any other contexts).