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.CacheKey
           
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, Set<ScriptEngineService> scriptEngines)
           
 
Method Summary
 void clear()
           
 void close()
           
 CompiledScript compile(String script)
           
 CompiledScript compile(String lang, String script)
           
 ExecutableScript executable(CompiledScript compiledScript, Map vars)
           
 ExecutableScript executable(String lang, String script, Map vars)
           
 Object execute(CompiledScript compiledScript, Map vars)
           
 SearchScript search(CompiledScript compiledScript, SearchLookup lookup, Map<String,Object> vars)
           
 SearchScript search(MapperService mapperService, FieldDataCache fieldDataCache, String lang, String script, Map<String,Object> vars)
           
 SearchScript search(SearchLookup lookup, String lang, String script, Map<String,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,
                            Set<ScriptEngineService> scriptEngines)
Method Detail

close

public void close()

compile

public CompiledScript compile(String script)

compile

public CompiledScript compile(String lang,
                              String script)

executable

public ExecutableScript executable(String lang,
                                   String script,
                                   Map vars)

executable

public ExecutableScript executable(CompiledScript compiledScript,
                                   Map vars)

search

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

search

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

search

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

execute

public Object execute(CompiledScript compiledScript,
                      Map vars)

clear

public void clear()


Copyright © 2009-2012. All Rights Reserved.