Method: Elastic::Shims::MultipleAggregation#handle_result
- Defined in:
- lib/elastic/shims/multiple_aggregation.rb
#handle_result(_raw, _formatter) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/elastic/shims/multiple_aggregation.rb', line 3 def handle_result(_raw, _formatter) result = super case result when Elastic::Results::Root result.aggregations when Elastic::Results::GroupedResult result else raise "unable to reduce result of type #{result.class}" end end |