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.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
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