Example #1
0
        public static IList <HistogramItem> GetHistogram <T>(this AggregationsHelper aggs,
                                                             Expression <Func <T, Object> > fieldGetter)
        {
            var histogramItem = aggs.Histogram(GetName(fieldGetter));

            return(histogramItem.Items);
        }
Example #2
0
        public static IReadOnlyCollection <KeyedBucket <double> > GetHistogram <T>(this AggregationsHelper aggs,
                                                                                   Expression <Func <T, Object> > fieldGetter)
        {
            var histogramItem = aggs.Histogram(GetName(fieldGetter));

            return(histogramItem.Buckets);
        }