def _build_named_aggs
      named_aggs = {}
      @_indexes.each do |index|
        index.types.each do |type|
          type._agg_defs.each do |agg_name, prc|
            named_aggs[agg_name] = prc.call
          end
        end
      end
      named_aggs
    end
def _build_named_aggs
      named_aggs = {}
      @_indexes.each do |index|
        index.types.each do |type|
          type._agg_defs.each do |agg_name, prc|
            named_aggs[agg_name] = prc.call
          end
        end
      end
      named_aggs
    end
def _build_named_aggs named_aggs = { } @_indexes . each do | index | index . types . each do | type | type . _agg_defs . each do | agg_name , prc | named_aggs [ agg_name ] = prc . call end end end named_aggs end
In this simplest of implementations each named aggregation must be uniquely named
In this simplest of implementations each named aggregation must be uniquely named