Facet field
Feature
Create a nested facet
How to
- Configure facet (field, range, query or spatial)
DocumentCollection<TechProductDocument> documentCollection; // from DI
var rersult = documentCollection
.Select()
.FacetField(q => q.InStock)
.Execute();
- Configure nested facet (field, range, query or spatial)
DocumentCollection<TechProductDocument> documentCollection; // from DI
var rersult = documentCollection
.Select()
.FacetField(q => q.InStock, facet => facet
.FacetField(q => q.Categories))
.Execute()
.Facets(out var data);