Package com.mongodb.client.model.search
Interface GaussSearchScoreExpression
- All Superinterfaces:
Bson
,SearchScoreExpression
- Since:
- 4.7
- See Also:
-
Field Summary
Fields inherited from interface org.bson.conversions.Bson
DEFAULT_CODEC_REGISTRY
-
Method Summary
Modifier and TypeMethodDescriptiondecay
(double decay) Creates a newGaussSearchScoreExpression
with the factor by which the output of the Gaussian function must decay at distancescale
.offset
(double offset) Creates a newGaussSearchScoreExpression
which does not decay, i.e., its output stays 1, if the value of thepath
expression is within the interval [origin
-offset
;origin
+offset
].Methods inherited from interface org.bson.conversions.Bson
toBsonDocument, toBsonDocument
-
Method Details
-
offset
Creates a newGaussSearchScoreExpression
which does not decay, i.e., its output stays 1, if the value of thepath
expression is within the interval [origin
-offset
;origin
+offset
].- Parameters:
offset
- The offset from the origin where no decay happens.- Returns:
- A new
GaussSearchScoreExpression
.
-
decay
Creates a newGaussSearchScoreExpression
with the factor by which the output of the Gaussian function must decay at distancescale
.- Parameters:
decay
- The decay.- Returns:
- A new
GaussSearchScoreExpression
.
-