SearchScoreDefinitionBuilderTDocumentFunction Method |
Creates a score modifier that computes the final score through an expression.
Namespace:
MongoDB.Driver.Search
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax public SearchScoreDefinition<TDocument> Function(
SearchScoreFunction<TDocument> function
)
Public Function Function (
function As SearchScoreFunction(Of TDocument)
) As SearchScoreDefinition(Of TDocument)
member Function :
function : SearchScoreFunction<'TDocument> -> SearchScoreDefinition<'TDocument>
Parameters
- function
- Type: MongoDB.Driver.SearchSearchScoreFunctionTDocument
The expression used to compute the score.
Return Value
Type:
SearchScoreDefinitionTDocument
A function score modifier.
See Also