Package org.elasticsearch.script
Class NumberSortScript
java.lang.Object
org.elasticsearch.script.DocBasedScript
org.elasticsearch.script.NumberSortScript
- All Implemented Interfaces:
ScorerAware
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A factory to construct statefulNumberSortScript
factories for a specific index.static interface
A factory to constructNumberSortScript
instances. -
Field Summary
Modifier and TypeFieldDescriptionstatic final ScriptContext<NumberSortScript.Factory>
static final String[]
Fields inherited from class org.elasticsearch.script.DocBasedScript
docReader
-
Constructor Summary
ModifierConstructorDescriptionprotected
NumberSortScript
(Map<String, Object> params, SearchLookup searchLookup, DocReader docReader) -
Method Summary
Methods inherited from class org.elasticsearch.script.DocBasedScript
docAsMap, field, fields, getDoc, setDocument
-
Field Details
-
PARAMETERS
-
CONTEXT
-
-
Constructor Details
-
NumberSortScript
-
NumberSortScript
protected NumberSortScript()
-
-
Method Details
-
execute
public abstract double execute() -
getParams
Return the parameters for this script. -
setScorer
public void setScorer(org.apache.lucene.search.Scorable scorer) - Specified by:
setScorer
in interfaceScorerAware
-
get_score
public double get_score()Return the score of the current document.
-