示例#1
0
        /// <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));
        }
示例#2
0
 public IEnumerable <KeyedBucket <string> > GetGroupBy(Expression <Func <T, object> > fieldGetter)
 {
     return(aggs.GetGroupBy(fieldGetter));
 }