Permalink
Browse files

Added note about sub-aggreations to readme - closes #1047 [skip ci]

  • Loading branch information...
ankane committed Dec 30, 2017
1 parent 243419c commit cc0d26309cf49bf4ddcf8b2fadf2529dac353a72
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -759,7 +759,7 @@ Date histogram
Product.search "pear", aggs: {products_per_year: {date_histogram: {field: :created_at, interval: :year}}}
```
For other aggregation types, use `body_options`:
For other aggregation types, including sub-aggregations, use `body_options`:
```ruby
Product.search "orange", body_options: {aggs: {price: {histogram: {field: :price, interval: 10}}}

0 comments on commit cc0d263

Please sign in to comment.