Docs: Mention option to enable scripting for watcher-only

Deep down buried there is an option to not only allow global
script execution, but also allow a single scripting language for
watcher only. It is time to document it as well.

Renamed this option to `script.engine.groovy.inline.xpack_watch`
to align with xpack renaming.

Closes elastic/elasticsearch#1422

Original commit: elastic/x-pack-elasticsearch@845eb5a0c0
This commit is contained in:
Alexander Reelsen 2016-03-08 12:04:28 +01:00
parent a31a6fba44
commit f4eb0e7c7c
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public class ScriptServiceProxy implements InitializingService.Initializable {
service.executable(script, WatcherScriptContext.CTX, emptyMap()));
}
public static final ScriptContext.Plugin INSTANCE = new ScriptContext.Plugin("elasticsearch-watcher", "watch");
public static final ScriptContext.Plugin INSTANCE = new ScriptContext.Plugin("xpack", "watch");
private static class WatcherScriptContext implements ScriptContext {