SearchScoreDefinitionBuilderTDocumentBoost Method (SearchPathDefinitionTDocument, Double) |
Creates a score modifier that multiples a result's base score by the value of a numeric
field in the documents.
Namespace:
MongoDB.Driver.Search
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax public SearchScoreDefinition<TDocument> Boost(
SearchPathDefinition<TDocument> path,
double undefined = 0
)
Public Function Boost (
path As SearchPathDefinition(Of TDocument),
Optional undefined As Double = 0
) As SearchScoreDefinition(Of TDocument)
member Boost :
path : SearchPathDefinition<'TDocument> *
?undefined : float
(* Defaults:
let _undefined = defaultArg undefined 0
*)
-> SearchScoreDefinition<'TDocument>
Parameters
- path
- Type: MongoDB.Driver.SearchSearchPathDefinitionTDocument
The path to the numeric field whose value to multiply the default base score by.
- undefined (Optional)
- Type: SystemDouble
The numeric value to substitute if the numeric field is not found in the documents.
Return Value
Type:
SearchScoreDefinitionTDocument
A boost score modifier.
See Also