Exemplo n.º 1
0
        /// <summary>
        /// Retrieves the list of buckets if terms aggregation is present
        /// </summary>
        public static IEnumerable <KeyedBucket <string> > GetGroupBy <T>(this AggregateDictionary aggs, Expression <Func <T, object> > fieldGetter)
        {
            var aggName = fieldGetter.GetAggName(AggType.GroupBy);

            return(aggs.GetGroupBy(aggName));
        }
Exemplo n.º 2
0
 public IEnumerable <KeyedBucket <string> > GetGroupBy(Expression <Func <T, object> > fieldGetter)
 {
     return(aggs.GetGroupBy(fieldGetter));
 }