public Dictionary <string, int> GetSearch(Lucene.Net.Search.Query query, List <string> filter, List <Util.SearchStringModel> searchQuery, string locationFilter, System.Collections.BitArray baseQuery) { using (var searcher = new IndexSearcher(ItemBucket.Kernel.Util.Constants.Index.Name)) { var results = searcher.RunFacet(query, false, false, 0, 0, "dimensions", filter, baseQuery, locationFilter); return(results); } }
public Dictionary <string, int> GetSearch(Query query, List <string> filter, List <SearchStringModel> searchQuery, string locationFilter, BitArray baseQuery) { using (var searcher = new IndexSearcher(Util.Constants.Index.Name)) { var results = searcher.RunFacet(query, false, true, 0, 0, "__created by", filter, baseQuery, locationFilter); return(results); } }