data-axle/elastic_record — pull request #33 by matthuhiggins (2014-09-22 17:46:20+00:00)
Title: Aggregation methods

Introduce ElasticRecord#aggregate and #ElasticRecord#aggregations. For example, to create a terms aggregation:
```ruby
dogs = Dog.filter(breed: 'Greyhound').aggregate('popular_colors' => {'terms' => {'field' => 'color'}})
dogs.aggregations
```
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-aggregations.html

@data-axle/developers