| Package | Description |
|---|---|
| org.elasticsearch.script | |
| org.elasticsearch.script.mustache | |
| org.elasticsearch.search.aggregations.bucket.significant.heuristics |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ExplainableSearchScript
To be implemented by
SearchScript which can provided an Explanation of the score
This is currently not used inside elasticsearch but it is used, see for example here:
https://github.com/elasticsearch/elasticsearch/issues/8561 |
interface |
LeafSearchScript
A per-segment
SearchScript. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDoubleSearchScript
A simpler base class instead of
AbstractSearchScript for computations
that return a double number. |
class |
AbstractExecutableScript |
class |
AbstractFloatSearchScript
A simpler base class instead of
AbstractSearchScript for computations
that return a float number. |
class |
AbstractLongSearchScript
A simpler base class instead of
AbstractSearchScript for computations
that return a long number. |
class |
AbstractSearchScript
A base class for any script type that is used during the search process (custom score, aggs, and so on).
|
| Modifier and Type | Method and Description |
|---|---|
ExecutableScript |
NativeScriptEngineService.executable(CompiledScript compiledScript,
Map<String,Object> vars) |
ExecutableScript |
ScriptService.executable(CompiledScript compiledScript,
Map<String,Object> vars)
Executes a previously compiled script provided as an argument
|
ExecutableScript |
ScriptEngineService.executable(CompiledScript compiledScript,
Map<String,Object> vars) |
ExecutableScript |
ScriptService.executable(Script script,
ScriptContext scriptContext,
HasContextAndHeaders headersContext,
Map<String,String> params)
Compiles (or retrieves from cache) and executes the provided script
|
ExecutableScript |
NativeScriptFactory.newScript(Map<String,Object> params)
Creates a new instance of either a
ExecutableScript or a SearchScript. |
| Modifier and Type | Method and Description |
|---|---|
ExecutableScript |
MustacheScriptEngineService.executable(CompiledScript compiledScript,
Map<String,Object> vars) |
| Constructor and Description |
|---|
ScriptHeuristic(ExecutableScript searchScript,
Script script) |
Copyright © 2009–2017. All rights reserved.