Method: Elasticated::RangeAggregation#build
- Defined in:
- lib/elasticated/aggregations/range_aggregation.rb
#build ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/elasticated/aggregations/range_aggregation.rb', line 18 def build # _subaggregations is a RangeAggregationEvaluator, so... ranges = _subaggregations.build_ranges body_struct = { field: field, keyed: true, ranges: ranges } body_struct.merge! extra_params body = { range: body_struct } body.merge! build_subaggregations body end |