Package org.elasticsearch.script
Class ScoreScriptUtils
- java.lang.Object
-
- org.elasticsearch.script.ScoreScriptUtils
-
public final class ScoreScriptUtils extends java.lang.Object
ScoringScriptImpl can be used asScoreScript
to run a previously compiled Painless script.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScoreScriptUtils.DecayDateExp
static class
ScoreScriptUtils.DecayDateGauss
static class
ScoreScriptUtils.DecayDateLinear
static class
ScoreScriptUtils.DecayGeoExp
static class
ScoreScriptUtils.DecayGeoGauss
static class
ScoreScriptUtils.DecayGeoLinear
static class
ScoreScriptUtils.DecayNumericExp
static class
ScoreScriptUtils.DecayNumericGauss
static class
ScoreScriptUtils.DecayNumericLinear
static class
ScoreScriptUtils.RandomNotReproducible
-
Constructor Summary
Constructors Constructor Description ScoreScriptUtils()
-
Method Summary
Modifier and Type Method Description static double
randomReproducible(java.lang.String seedValue, int seed)
static double
saturation(double value, double k)
STATIC FUNCTIONS that can be used by users for score calculationsstatic double
sigmoid(double value, double k, double a)
Calculate a sigmoid ofvalue
with scaling parametersk
anda
-
-
-
Method Detail
-
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 ofvalue
with scaling parametersk
anda
-
randomReproducible
public static double randomReproducible(java.lang.String seedValue, int seed)
-
-