Package org.elasticsearch.script
Class StringSortScript
java.lang.Object
org.elasticsearch.script.DocBasedScript
org.elasticsearch.script.StringSortScript
- All Implemented Interfaces:
ScorerAware
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A factory to construct statefulStringSortScript
factories for a specific index.static interface
A factory to constructStringSortScript
instances. -
Field Summary
Modifier and TypeFieldDescriptionstatic final ScriptContext<StringSortScript.Factory>
static final String[]
Fields inherited from class org.elasticsearch.script.DocBasedScript
docReader
-
Constructor Summary
-
Method Summary
Methods inherited from class org.elasticsearch.script.DocBasedScript
docAsMap, field, fields, getDoc, setDocument
-
Field Details
-
PARAMETERS
-
CONTEXT
-
-
Constructor Details
-
StringSortScript
-
-
Method Details
-
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.
-