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.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax public SearchFacet<TDocument> Date<TField>(
string name,
Expression<Func<TDocument, TField>> path,
params DateTime[] boundaries
)
Public Function Date(Of TField) (
name As String,
path As Expression(Of Func(Of TDocument, TField)),
ParamArray boundaries As DateTime()
) As SearchFacet(Of TDocument)
member Date :
name : string *
path : Expression<Func<'TDocument, 'TField>> *
boundaries : DateTime[] -> SearchFacet<'TDocument>
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:
SearchFacetTDocumentA date search facet.
See Also