Package org.elasticsearch.script
Class SimilarityWeightScript
java.lang.Object
org.elasticsearch.script.SimilarityWeightScript
A script that is used to compute scoring factors that are the same for all documents.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract double
execute(ScriptedSimilarity.Query query, ScriptedSimilarity.Field field, ScriptedSimilarity.Term term)
Compute the weight.
-
Field Details
-
PARAMETERS
-
CONTEXT
-
-
Constructor Details
-
SimilarityWeightScript
public SimilarityWeightScript()
-
-
Method Details
-
execute
public abstract double execute(ScriptedSimilarity.Query query, ScriptedSimilarity.Field field, ScriptedSimilarity.Term term)Compute the weight.- Parameters:
query
- scoring factors that come from the queryfield
- field-level statisticsterm
- term-level statistics
-