/// <summary>
 /// Given a Lucene Query, this will build the facets and append them to find the Bit comparison of two queries.
 /// </summary>
 /// <returns>List of FacetReturn</returns>
 /// <param name="query">The initial query</param>
 /// <param name="filter">The facet filter</param>
 /// <param name="searchQuery">The raw search query</param>
 /// <param name="locationFilter">The location used to determine which index to use</param>
 /// <param name="baseQuery">The initial queries bit array</param>
 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, "__smallCreatedDate", filter);
         return results;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Given a Lucene Query, this will build the facets and append them to find the Bit comparison of two queries.
 /// </summary>
 /// <returns>List of FacetReturn</returns>
 /// <param name="query">The initial query</param>
 /// <param name="filter">The facet filter</param>
 /// <param name="searchQuery">The raw search query</param>
 /// <param name="locationFilter">The location used to determine which index to use</param>
 /// <param name="baseQuery">The initial queries bit array</param>
 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, "__smallCreatedDate", filter, baseQuery, locationFilter);
         return(results);
     }
 }