Table of Contents

Class SearchScoreDefinitionBuilder<TDocument>

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

A builder for a score modifier.

public sealed class SearchScoreDefinitionBuilder<TDocument>

Type Parameters

TDocument

The type of the document.

Inheritance
SearchScoreDefinitionBuilder<TDocument>
Inherited Members

Methods

Boost(SearchPathDefinition<TDocument>, double)

Creates a score modifier that multiples a result's base score by the value of a numeric field in the documents.

Boost(double)

Creates a score modifier that multiplies a result's base score by a given number.

Boost(Expression<Func<TDocument, double>>, double)

Creates a score modifier that multiplies a result's base score by the value of a numeric field in the documents.

Constant(double)

Creates a score modifier that replaces the base score with a given number.

Function(SearchScoreFunction<TDocument>)

Creates a score modifier that computes the final score through an expression.