SearchFacetBuilder<TDocument>.Date Method (String, SearchPathDefinition<TDocument>,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.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntaxpublic 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: System.String
The name of the fact. - path
- Type: MongoDB.Driver.Search.SearchPathDefinition<TDocument>
The field path to facet on. - boundaries
- Type:System.DateTime[]
A list of date values that specify the boundaries for each bucket.
Return Value
Type:
SearchFacet<TDocument>A date search facet.
See Also