Table of Contents

Class SearchFacetBuilder<TDocument>

Namespace
MongoDB.Driver.Search
Assembly
MongoDB.Driver.dll

A builder for a search facet.

public sealed class SearchFacetBuilder<TDocument>

Type Parameters

TDocument

The type of the document.

Inheritance
SearchFacetBuilder<TDocument>
Inherited Members

Methods

Date(string, SearchPathDefinition<TDocument>, IEnumerable<DateTime>, string)

Creates a facet that narrows down search result based on a date.

Date(string, SearchPathDefinition<TDocument>, params DateTime[])

Creates a facet that narrows down search result based on a date.

Date<TField>(string, Expression<Func<TDocument, TField>>, IEnumerable<DateTime>, string)

Creates a facet that narrows down search result based on a date.

Date<TField>(string, Expression<Func<TDocument, TField>>, params DateTime[])

Creates a facet that narrows down search result based on a date.

Number(string, SearchPathDefinition<TDocument>, params BsonValue[])

Creates a facet that determines the frequency of numeric values by breaking the search results into separate ranges of numbers.

Number(string, SearchPathDefinition<TDocument>, IEnumerable<BsonValue>, string)

Creates a facet that determines the frequency of numeric values by breaking the search results into separate ranges of numbers.

Number<TField>(string, Expression<Func<TDocument, TField>>, params BsonValue[])

Creates a facet that determines the frequency of numeric values by breaking the search results into separate ranges of numbers.

Number<TField>(string, Expression<Func<TDocument, TField>>, IEnumerable<BsonValue>, string)

Creates a facet that determines the frequency of numeric values by breaking the search results into separate ranges of numbers.

String(string, SearchPathDefinition<TDocument>, int?)

Creates a facet that narrows down Atlas Search results based on the most frequent string values in the specified string field.

String<TField>(string, Expression<Func<TDocument, TField>>, int?)

Creates a facet that narrows down Atlas Search result based on the most frequent string values in the specified string field.