Beispiel #1
0
 protected virtual IEnumerable <BaseFacet> GlobalFacets(IReadOnlyDictionary <string, IAggregate> facets, string facetName)
 {
     var aggregations       = new AggregationsHelper(facets);
     var globalAggregations = new AggregationsHelper(aggregations.Global(facetName).Aggregations);
     var globalFilter       = globalAggregations.Filter(SearchConstants.SearchFacetNames.GlobalFilter);
     var items = globalFilter.Terms(facetName).Buckets.Select(bucket => new BaseFacet {
         Name = bucket.Key, Count = bucket.DocCount ?? default
     });