org.elasticsearch.script
Class ScriptService

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.script.ScriptService

public class ScriptService
extends AbstractComponent


Nested Class Summary
static class ScriptService.DocScoreNativeScriptFactory
           
static class ScriptService.DocScoreSearchScript
           
 
Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
ScriptService(Settings settings)
           
ScriptService(Settings settings, Environment env, java.util.Set<ScriptEngineService> scriptEngines)
           
 
Method Summary
 void clear()
           
 void close()
           
 CompiledScript compile(java.lang.String script)
           
 CompiledScript compile(java.lang.String lang, java.lang.String script)
           
 ExecutableScript executable(CompiledScript compiledScript, java.util.Map vars)
           
 ExecutableScript executable(java.lang.String lang, java.lang.String script, java.util.Map vars)
           
 java.lang.Object execute(CompiledScript compiledScript, java.util.Map vars)
           
 SearchScript search(CompiledScript compiledScript, SearchLookup lookup, java.util.Map<java.lang.String,java.lang.Object> vars)
           
 SearchScript search(MapperService mapperService, FieldDataCache fieldDataCache, java.lang.String lang, java.lang.String script, java.util.Map<java.lang.String,java.lang.Object> vars)
           
 SearchScript search(SearchLookup lookup, java.lang.String lang, java.lang.String script, java.util.Map<java.lang.String,java.lang.Object> vars)
           
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptService

public ScriptService(Settings settings)

ScriptService

@Inject
public ScriptService(Settings settings,
                            Environment env,
                            java.util.Set<ScriptEngineService> scriptEngines)
Method Detail

close

public void close()

compile

public CompiledScript compile(java.lang.String script)

compile

public CompiledScript compile(java.lang.String lang,
                              java.lang.String script)

executable

public ExecutableScript executable(java.lang.String lang,
                                   java.lang.String script,
                                   java.util.Map vars)

executable

public ExecutableScript executable(CompiledScript compiledScript,
                                   java.util.Map vars)

search

public SearchScript search(CompiledScript compiledScript,
                           SearchLookup lookup,
                           @Nullable
                           java.util.Map<java.lang.String,java.lang.Object> vars)

search

public SearchScript search(SearchLookup lookup,
                           java.lang.String lang,
                           java.lang.String script,
                           @Nullable
                           java.util.Map<java.lang.String,java.lang.Object> vars)

search

public SearchScript search(MapperService mapperService,
                           FieldDataCache fieldDataCache,
                           java.lang.String lang,
                           java.lang.String script,
                           @Nullable
                           java.util.Map<java.lang.String,java.lang.Object> vars)

execute

public java.lang.Object execute(CompiledScript compiledScript,
                                java.util.Map vars)

clear

public void clear()