Interface GaussSearchScoreExpression

All Superinterfaces:
org.bson.conversions.Bson, SearchScoreExpression

@Sealed @Beta(CLIENT) public interface GaussSearchScoreExpression extends SearchScoreExpression
Since:
4.7
See Also:
  • Field Summary

    Fields inherited from interface org.bson.conversions.Bson

    DEFAULT_CODEC_REGISTRY
  • Method Summary

    Modifier and Type
    Method
    Description
    decay(double decay)
    Creates a new GaussSearchScoreExpression with the factor by which the output of the Gaussian function must decay at distance scale.
    offset(double offset)
    Creates a new GaussSearchScoreExpression which does not decay, i.e., its output stays 1, if the value of the path expression is within the interval [origin - offset; origin + offset].

    Methods inherited from interface org.bson.conversions.Bson

    toBsonDocument, toBsonDocument