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:
parent
a31a6fba44
commit
f4eb0e7c7c
|
@ -65,7 +65,7 @@ public class ScriptServiceProxy implements InitializingService.Initializable {
|
||||||
service.executable(script, WatcherScriptContext.CTX, emptyMap()));
|
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 {
|
private static class WatcherScriptContext implements ScriptContext {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue