From f4eb0e7c7cf75ac36b38410d6309c9cad2e95236 Mon Sep 17 00:00:00 2001 From: Alexander Reelsen Date: Tue, 8 Mar 2016 12:04:28 +0100 Subject: [PATCH] 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@845eb5a0c0ceae30fd5acd9a7886a316c807cfe0 --- .../watcher/support/init/proxy/ScriptServiceProxy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch/x-pack/watcher/src/main/java/org/elasticsearch/watcher/support/init/proxy/ScriptServiceProxy.java b/elasticsearch/x-pack/watcher/src/main/java/org/elasticsearch/watcher/support/init/proxy/ScriptServiceProxy.java index 07d745476fe..f7448f92680 100644 --- a/elasticsearch/x-pack/watcher/src/main/java/org/elasticsearch/watcher/support/init/proxy/ScriptServiceProxy.java +++ b/elasticsearch/x-pack/watcher/src/main/java/org/elasticsearch/watcher/support/init/proxy/ScriptServiceProxy.java @@ -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 {