Click or drag to resize

SearchFacetBuilderTDocumentDateTField Method (String, ExpressionFuncTDocument, TField, DateTime)

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

Namespace:  MongoDB.Driver.Search
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax
public SearchFacet<TDocument> Date<TField>(
	string name,
	Expression<Func<TDocument, TField>> path,
	params DateTime[] boundaries
)

Parameters

name
Type: SystemString
The name of the fact.
path
Type: System.Linq.ExpressionsExpressionFuncTDocument, TField
The field path to facet on.
boundaries
Type: SystemDateTime
A list of date values that specify the boundaries for each bucket.

Type Parameters

TField
The type of the field.

Return Value

Type: SearchFacetTDocument
A date search facet.
See Also