//Retrieves all the categories facets public Dictionary <string, int> FacetSearchGetAll() { Dictionary <string, int> d = new Dictionary <string, int>(); var r = solr.FacetFieldQuery(new SolrFacetFieldQuery("_categories_")); foreach (var i in r) { d.Add(i.Key, i.Value); } return(d); }