Package org.elasticsearch.plugins
Interface ScriptPlugin
public interface ScriptPlugin
An additional extension point for
Plugin
s that extends Elasticsearch's scripting functionality.-
Method Summary
Modifier and TypeMethodDescriptiondefault List<ScriptContext<?>>
Return script contexts this plugin wants to allow using.default ScriptEngine
getScriptEngine(Settings settings, Collection<ScriptContext<?>> contexts)
Returns aScriptEngine
instance ornull
if this plugin doesn't add a new script engine.
-
Method Details
-
getScriptEngine
Returns aScriptEngine
instance ornull
if this plugin doesn't add a new script engine.- Parameters:
settings
- Node settingscontexts
- The contexts thatScriptEngine.compile(String, String, ScriptContext, Map)
may be called with
-
getContexts
Return script contexts this plugin wants to allow using.
-