Table of Contents

Method Constant

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

Constant(double)

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

public SearchScoreDefinition<TDocument> Constant(double value)

Parameters

value double

The number to replace the base score with.

Returns

SearchScoreDefinition<TDocument>

A constant score modifier.