Click or drag to resize

SearchScoreFunctionBuilderTDocument Class

A builder for a score function.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.SearchSearchScoreFunctionBuilderTDocument

Namespace:  MongoDB.Driver.Search
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax
public sealed class SearchScoreFunctionBuilder<TDocument>

Type Parameters

TDocument
The type of the document.

The SearchScoreFunctionBuilderTDocument type exposes the following members.

Constructors
  NameDescription
Public methodSearchScoreFunctionBuilderTDocument
Initializes a new instance of the SearchScoreFunctionBuilderTDocument class
Top
Methods
  NameDescription
Public methodAdd(SearchScoreFunctionTDocument)
Creates a function that adds a series of numbers.
Public methodAdd(IEnumerableSearchScoreFunctionTDocument)
Creates a function that adds a series of numbers.
Public methodConstant
Creates a function that represents a constant number.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGauss(ExpressionFuncTDocument, Double, Double, Double, Double, Double)
Creates a function that decays, or reduces by multiplying, the final scores of the documents based on the distance of a numeric field from a specified origin point.
Public methodGauss(SearchPathDefinitionTDocument, Double, Double, Double, Double)
Creates a function that decays, or reduces by multiplying, the final scores of the documents based on the distance of a numeric field from a specified origin point.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLog
Creates a function that calculates the base-10 logarithm of a number.
Public methodLog1p
Creates a function that adds 1 to a number and then calculates its base-10 logarithm.
Public methodMultiply(SearchScoreFunctionTDocument)
Creates a function that multiplies a series of numbers.
Public methodMultiply(IEnumerableSearchScoreFunctionTDocument)
Creates a function that multiplies a series of numbers.
Public methodPath(ExpressionFuncTDocument, Double, Double)
Creates a function that incorporates an indexed numeric field value into the score.
Public methodPath(SearchPathDefinitionTDocument, Double)
Creates a function that incorporates an indexed numeric field value into the score.
Public methodRelevance
Creates a function that represents the relevance score, which is the score Atlas Search assigns documents based on relevance.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also