Class RankFeatureQueryBuilder.ScoreFunction.Saturation

java.lang.Object
org.opensearch.index.query.RankFeatureQueryBuilder.ScoreFunction
org.opensearch.index.query.RankFeatureQueryBuilder.ScoreFunction.Saturation
Enclosing class:
RankFeatureQueryBuilder.ScoreFunction

public static class RankFeatureQueryBuilder.ScoreFunction.Saturation
extends RankFeatureQueryBuilder.ScoreFunction
A scoring function that scores documents as S / (S + pivot) where S is the value of the static feature.
  • Constructor Details

    • Saturation

      public Saturation()
      Constructor with a default pivot, computed as the geometric average of all feature values in the index.
    • Saturation

      public Saturation​(float pivot)
  • Method Details

    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object