Package org.opensearch.index.query
Class RankFeatureQueryBuilder.ScoreFunction
- java.lang.Object
-
- org.opensearch.index.query.RankFeatureQueryBuilder.ScoreFunction
-
- Direct Known Subclasses:
RankFeatureQueryBuilder.ScoreFunction.Linear,RankFeatureQueryBuilder.ScoreFunction.Log,RankFeatureQueryBuilder.ScoreFunction.Saturation,RankFeatureQueryBuilder.ScoreFunction.Sigmoid
- Enclosing class:
- RankFeatureQueryBuilder
public abstract static class RankFeatureQueryBuilder.ScoreFunction extends java.lang.ObjectScoring function for a [rank_feature] field.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRankFeatureQueryBuilder.ScoreFunction.LinearA scoring function that scores documents as simplySwhere S is the indexed value of the static feature.static classRankFeatureQueryBuilder.ScoreFunction.LogA scoring function that scores documents asMath.log(scalingFactor + S)where S is the value of the static feature.static classRankFeatureQueryBuilder.ScoreFunction.SaturationA scoring function that scores documents asS / (S + pivot)where S is the value of the static feature.static classRankFeatureQueryBuilder.ScoreFunction.SigmoidA scoring function that scores documents asS^exp / (S^exp + pivot^exp)where S is the value of the static feature.
-