Package org.elasticsearch.index.query
Class RankFeatureQueryBuilder.ScoreFunction.Saturation
java.lang.Object
org.elasticsearch.index.query.RankFeatureQueryBuilder.ScoreFunction
org.elasticsearch.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.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.query.RankFeatureQueryBuilder.ScoreFunction
RankFeatureQueryBuilder.ScoreFunction.Linear, RankFeatureQueryBuilder.ScoreFunction.Log, RankFeatureQueryBuilder.ScoreFunction.Saturation, RankFeatureQueryBuilder.ScoreFunction.Sigmoid -
Constructor Summary
Constructors Constructor Description Saturation()Constructor with a default pivot, computed as the geometric average of all feature values in the index.Saturation(float pivot) -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-