Skip to content

Commit

Permalink
Fix old name of script context in docs (#45410)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rjernst committed Aug 12, 2019
1 parent 8ed84bc commit 18c5376
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference/scripting/security.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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).

0 comments on commit 18c5376

Please sign in to comment.