Table of Contents

Method Constant

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

Constant(double)

Creates a function that represents a constant number.

public SearchScoreFunction<TDocument> Constant(double value)

Parameters

value double

Number that indicates a fixed value.

Returns

SearchScoreFunction<TDocument>

A constant score function.