SearchDefinitionBuilderTDocumentFacet Method (SearchDefinitionTDocument, IEnumerableSearchFacetTDocument) | 
 
            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.
            
 
    Namespace: 
   MongoDB.Driver.Search
    Assembly:
   MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntaxpublic SearchDefinition<TDocument> Facet(
	SearchDefinition<TDocument> operator,
	IEnumerable<SearchFacet<TDocument>> facets
)
Public Function Facet ( 
	operator As SearchDefinition(Of TDocument),
	facets As IEnumerable(Of SearchFacet(Of TDocument))
) As SearchDefinition(Of TDocument)
member Facet : 
        operator : SearchDefinition<'TDocument> * 
        facets : IEnumerable<SearchFacet<'TDocument>> -> SearchDefinition<'TDocument> 
Parameters
- operator
 - Type: MongoDB.Driver.SearchSearchDefinitionTDocument
The operator to use to perform the facet over. - facets
 - Type: System.Collections.GenericIEnumerableSearchFacetTDocument
Information for bucketing the data for each facet. 
Return Value
Type: 
SearchDefinitionTDocumentA facet search definition.
See Also