Click or drag to resize

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.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax
public SearchScoreDefinition<TDocument> Function(
	SearchScoreFunction<TDocument> function
)

Parameters

function
Type: MongoDB.Driver.SearchSearchScoreFunctionTDocument
The expression used to compute the score.

Return Value

Type: SearchScoreDefinitionTDocument
A function score modifier.
See Also