concept facet in category ravendb
appears as: facets, facets, facet

This is an excerpt from Manning's book RavenDB in Action.
RavenDB provides facilities to perform this type of query. The gist of Faceted Search with RavenDB is quite simple – you query, and tell RavenDB the criteria in which results should be faceted on. RavenDB in turn, after performing the query, will go through the results and create the facets in an efficient manner.
Asking for facets is as simple as creating a query as usual, and calling ToFacets() on it along with the definition of facets to be returned:
var facets = session.Query<Book>("BooksIndex") #A .ToFacets(new List<Facet> {}); foreach (var facetResult in facets.Results) #D {