Table of Contents

Method Function

Namespace
MongoDB.Driver.Search
Assembly
MongoDB.Driver.dll

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.