Method Date
Date(string, SearchPathDefinition<TDocument>, IEnumerable<DateTime>, string)
Creates a facet that narrows down search result based on a date.
public SearchFacet<TDocument> Date(string name, SearchPathDefinition<TDocument> path, IEnumerable<DateTime> boundaries, string @default = null)
Parameters
namestringThe name of the fact.
pathSearchPathDefinition<TDocument>The field path to facet on.
boundariesIEnumerable<DateTime>A list of date values that specify the boundaries for each bucket.
defaultstringThe name of an additional bucket that counts documents returned from the operator that do not fall within the specified boundaries.
Returns
- SearchFacet<TDocument>
A date search facet.
Date(string, SearchPathDefinition<TDocument>, params DateTime[])
Creates a facet that narrows down search result based on a date.
public SearchFacet<TDocument> Date(string name, SearchPathDefinition<TDocument> path, params DateTime[] boundaries)
Parameters
namestringThe name of the fact.
pathSearchPathDefinition<TDocument>The field path to facet on.
boundariesDateTime[]A list of date values that specify the boundaries for each bucket.
Returns
- SearchFacet<TDocument>
A date search facet.
Date<TField>(string, Expression<Func<TDocument, TField>>, IEnumerable<DateTime>, string)
Creates a facet that narrows down search result based on a date.
public SearchFacet<TDocument> Date<TField>(string name, Expression<Func<TDocument, TField>> path, IEnumerable<DateTime> boundaries, string @default = null)
Parameters
namestringThe name of the fact.
pathExpression<Func<TDocument, TField>>The field path to facet on.
boundariesIEnumerable<DateTime>A list of date values that specify the boundaries for each bucket.
defaultstringThe name of an additional bucket that counts documents returned from the operator that do not fall within the specified boundaries.
Returns
- SearchFacet<TDocument>
A date search facet.
Type Parameters
TFieldThe type of the field.
Date<TField>(string, Expression<Func<TDocument, TField>>, params DateTime[])
Creates a facet that narrows down search result based on a date.
public SearchFacet<TDocument> Date<TField>(string name, Expression<Func<TDocument, TField>> path, params DateTime[] boundaries)
Parameters
namestringThe name of the fact.
pathExpression<Func<TDocument, TField>>The field path to facet on.
boundariesDateTime[]A list of date values that specify the boundaries for each bucket.
Returns
- SearchFacet<TDocument>
A date search facet.
Type Parameters
TFieldThe type of the field.