solr express
Search…
Nested facet

Feature

Create a nested facet

How to

    1.
    Configure facet (field, range, query or spatial)
1
DocumentCollection<TechProductDocument> documentCollection; // from DI
2
3
var rersult = documentCollection
4
.Select()
5
.FacetField(q => q.InStock)
6
.Execute();
Copied!
    1.
    Configure nested facet (field, range, query or spatial)
1
DocumentCollection<TechProductDocument> documentCollection; // from DI
2
3
var rersult = documentCollection
4
.Select()
5
.FacetField(q => q.InStock, facet => facet
6
.FacetField(q => q.Categories))
7
.Execute()
8
.Facets(out var data);
Copied!
    1.
    Follow instructions to read data of a facet field, range, query or spatial
Last modified 2yr ago
Copy link