Method Function
Function(SearchScoreFunction<TDocument>)
Creates a score modifier that computes the final score through an expression.
public SearchScoreDefinition<TDocument> Function(SearchScoreFunction<TDocument> function)
Parameters
function
SearchScoreFunction<TDocument>The expression used to compute the score.
Returns
- SearchScoreDefinition<TDocument>
A function score modifier.