Package org.elasticsearch.script
Class ScoreScriptUtils
java.lang.Object
org.elasticsearch.script.ScoreScriptUtils
public final class ScoreScriptUtils
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScoreScriptUtils.DecayDateExpstatic classScoreScriptUtils.DecayDateGaussstatic classScoreScriptUtils.DecayDateLinearstatic classScoreScriptUtils.DecayGeoExpstatic classScoreScriptUtils.DecayGeoGaussstatic classScoreScriptUtils.DecayGeoLinearstatic classScoreScriptUtils.DecayNumericExpstatic classScoreScriptUtils.DecayNumericGaussstatic classScoreScriptUtils.DecayNumericLinearstatic classScoreScriptUtils.RandomScoreDocstatic classScoreScriptUtils.RandomScoreField -
Constructor Summary
Constructors Constructor Description ScoreScriptUtils() -
Method Summary
Modifier and Type Method Description static doublesaturation(double value, double k)STATIC FUNCTIONS that can be used by users for score calculationsstatic doublesigmoid(double value, double k, double a)Calculate a sigmoid ofvaluewith scaling parameterskanda
-
Constructor Details
-
ScoreScriptUtils
public ScoreScriptUtils()
-
-
Method Details
-
saturation
public static double saturation(double value, double k)STATIC FUNCTIONS that can be used by users for score calculations -
sigmoid
public static double sigmoid(double value, double k, double a)Calculate a sigmoid ofvaluewith scaling parameterskanda
-