Method Facet
Facet(SearchDefinition<TDocument>, IEnumerable<SearchFacet<TDocument>>)
Creates a search definition that groups results by values or ranges in the specified faceted fields and returns the count for each of those groups.
public SearchDefinition<TDocument> Facet(SearchDefinition<TDocument> @operator, IEnumerable<SearchFacet<TDocument>> facets)
Parameters
operator
SearchDefinition<TDocument>The operator to use to perform the facet over.
facets
IEnumerable<SearchFacet<TDocument>>Information for bucketing the data for each facet.
Returns
- SearchDefinition<TDocument>
A facet search definition.
Facet(SearchDefinition<TDocument>, params SearchFacet<TDocument>[])
Creates a search definition that groups results by values or ranges in the specified faceted fields and returns the count for each of those groups.
public SearchDefinition<TDocument> Facet(SearchDefinition<TDocument> @operator, params SearchFacet<TDocument>[] facets)
Parameters
operator
SearchDefinition<TDocument>The operator to use to perform the facet over.
facets
SearchFacet<TDocument>[]Information for bucketing the data for each facet.
Returns
- SearchDefinition<TDocument>
A facet search definition.