Click or drag to resize

SearchFacetBuilderTDocument Class

A builder for a search facet.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.SearchSearchFacetBuilderTDocument

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

Type Parameters

TDocument
The type of the document.

The SearchFacetBuilderTDocument type exposes the following members.

Constructors
  NameDescription
Public methodSearchFacetBuilderTDocument
Initializes a new instance of the SearchFacetBuilderTDocument class
Top
Methods
  NameDescription
Public methodDate(String, SearchPathDefinitionTDocument, DateTime)
Creates a facet that narrows down search result based on a date.
Public methodDate(String, SearchPathDefinitionTDocument, IEnumerableDateTime, String)
Creates a facet that narrows down search result based on a date.
Public methodDateTField(String, ExpressionFuncTDocument, TField, DateTime)
Creates a facet that narrows down search result based on a date.
Public methodDateTField(String, ExpressionFuncTDocument, TField, IEnumerableDateTime, String)
Creates a facet that narrows down search result based on a date.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodNumber(String, SearchPathDefinitionTDocument, BsonValue)
Creates a facet that determines the frequency of numeric values by breaking the search results into separate ranges of numbers.
Public methodNumber(String, SearchPathDefinitionTDocument, IEnumerableBsonValue, String)
Creates a facet that determines the frequency of numeric values by breaking the search results into separate ranges of numbers.
Public methodNumberTField(String, ExpressionFuncTDocument, TField, BsonValue)
Creates a facet that determines the frequency of numeric values by breaking the search results into separate ranges of numbers.
Public methodNumberTField(String, ExpressionFuncTDocument, TField, IEnumerableBsonValue, String)
Creates a facet that determines the frequency of numeric values by breaking the search results into separate ranges of numbers.
Public methodString(String, SearchPathDefinitionTDocument, NullableInt32)
Creates a facet that narrows down Atlas Search results based on the most frequent string values in the specified string field.
Public methodStringTField(String, ExpressionFuncTDocument, TField, NullableInt32)
Creates a facet that narrows down Atlas Search result based on the most frequent string values in the specified string field.
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