SearchFacetBuilderTDocumentDate Method (String, SearchPathDefinitionTDocument, 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.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax public SearchFacet<TDocument> Date(
string name,
SearchPathDefinition<TDocument> path,
params DateTime[] boundaries
)
Public Function Date (
name As String,
path As SearchPathDefinition(Of TDocument),
ParamArray boundaries As DateTime()
) As SearchFacet(Of TDocument)
member Date :
name : string *
path : SearchPathDefinition<'TDocument> *
boundaries : DateTime[] -> SearchFacet<'TDocument>
Parameters
- name
- Type: SystemString
The name of the fact. - path
- Type: MongoDB.Driver.SearchSearchPathDefinitionTDocument
The field path to facet on. - boundaries
- Type: SystemDateTime
A list of date values that specify the boundaries for each bucket.
Return Value
Type:
SearchFacetTDocumentA date search facet.
See Also