Click or drag to resize

SearchScoreDefinitionBuilder<TDocument>.Function 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.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax
public SearchScoreDefinition<TDocument> Function(
	SearchScoreFunction<TDocument> function
)

Parameters

function
Type: MongoDB.Driver.Search.SearchScoreFunction<TDocument>
The expression used to compute the score.

Return Value

Type: SearchScoreDefinition<TDocument>
A function score modifier.
See Also