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
)
Public Function Constant (
value As Double
) As SearchScoreDefinition(Of TDocument)
member Constant :
value : float -> SearchScoreDefinition<'TDocument>
Parameters
- value
- Type: SystemDouble
The number to replace the base score with.
Return Value
Type:
SearchScoreDefinitionTDocument
A constant score modifier.
See Also