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.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
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