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.Object
Scoring function for a [rank_feature] field.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  RankFeatureQueryBuilder.ScoreFunction.Linear
    A scoring function that scores documents as simply S where S is the indexed value of the static feature.
    static class  RankFeatureQueryBuilder.ScoreFunction.Log
    A scoring function that scores documents as Math.log(scalingFactor + S) where S is the value of the static feature.
    static class  RankFeatureQueryBuilder.ScoreFunction.Saturation
    A scoring function that scores documents as S / (S + pivot) where S is the value of the static feature.
    static class  RankFeatureQueryBuilder.ScoreFunction.Sigmoid
    A scoring function that scores documents as S^exp / (S^exp + pivot^exp) where S is the value of the static feature.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait