Click or drag to resize

SearchScoreDefinitionBuilderTDocumentConstant Method

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

Namespace:  MongoDB.Driver.Search
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax
public SearchScoreDefinition<TDocument> Constant(
	double value
)

Parameters

value
Type: SystemDouble
The number to replace the base score with.

Return Value

Type: SearchScoreDefinitionTDocument
A constant score modifier.
See Also