Nested facet
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);
Last updated
Was this helpful?