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