java.lang.Object
org.elasticsearch.script.DoubleValuesScript
A custom script that can be used for various DoubleValue Lucene operations.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A factory to constructDoubleValuesScript
instances. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract double
evaluate
(org.apache.lucene.search.DoubleValues[] functionValues) abstract double
execute()
abstract org.apache.lucene.search.DoubleValuesSource
getDoubleValuesSource
(Function<String, org.apache.lucene.search.DoubleValuesSource> sourceProvider) abstract org.apache.lucene.search.Rescorer
getRescorer
(Function<String, org.apache.lucene.search.DoubleValuesSource> sourceProvider) abstract org.apache.lucene.search.SortField
getSortField
(Function<String, org.apache.lucene.search.DoubleValuesSource> sourceProvider, boolean reverse) abstract String
abstract String[]
-
Field Details
-
CONTEXT
-
-
Constructor Details
-
DoubleValuesScript
public DoubleValuesScript()
-
-
Method Details
-
execute
public abstract double execute() -
evaluate
public abstract double evaluate(org.apache.lucene.search.DoubleValues[] functionValues) -
getDoubleValuesSource
-
getSortField
-
getRescorer
-
sourceText
-
variables
-