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.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
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