SearchScoreFunctionBuilderTDocumentPath Method (ExpressionFuncTDocument, Double, Double) |
Creates a function that incorporates an indexed numeric field value into the score.
Namespace:
MongoDB.Driver.Search
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax public SearchScoreFunction<TDocument> Path(
Expression<Func<TDocument, double>> path,
double undefined = 0
)
Public Function Path (
path As Expression(Of Func(Of TDocument, Double)),
Optional undefined As Double = 0
) As SearchScoreFunction(Of TDocument)
member Path :
path : Expression<Func<'TDocument, float>> *
?undefined : float
(* Defaults:
let _undefined = defaultArg undefined 0
*)
-> SearchScoreFunction<'TDocument>
Parameters
- path
- Type: System.Linq.ExpressionsExpressionFuncTDocument, Double
The path to the numeric field. - undefined (Optional)
- Type: SystemDouble
The value to use if the numeric field specified using path is
missing in the document.
Return Value
Type:
SearchScoreFunctionTDocumentA path score function.
See Also