SearchDefinitionBuilderTDocumentFacet Method (SearchDefinitionTDocument, SearchFacetTDocument) |
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.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax public SearchDefinition<TDocument> Facet(
SearchDefinition<TDocument> operator,
params SearchFacet<TDocument>[] facets
)
Public Function Facet (
operator As SearchDefinition(Of TDocument),
ParamArray facets As SearchFacet(Of TDocument)()
) As SearchDefinition(Of TDocument)
member Facet :
operator : SearchDefinition<'TDocument> *
facets : SearchFacet<'TDocument>[] -> SearchDefinition<'TDocument>
Parameters
- operator
- Type: MongoDB.Driver.SearchSearchDefinitionTDocument
The operator to use to perform the facet over. - facets
- Type: MongoDB.Driver.SearchSearchFacetTDocument
Information for bucketing the data for each facet.
Return Value
Type:
SearchDefinitionTDocumentA facet search definition.
See Also