Commit cc0d26309cf49bf4ddcf8b2fadf2529dac353a72

Authored by Andrew
1 parent 243419c6

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

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
@@ -759,7 +759,7 @@ Date histogram @@ -759,7 +759,7 @@ Date histogram
759 Product.search "pear", aggs: {products_per_year: {date_histogram: {field: :created_at, interval: :year}}} 759 Product.search "pear", aggs: {products_per_year: {date_histogram: {field: :created_at, interval: :year}}}
760 ``` 760 ```
761 761
762 -For other aggregation types, use `body_options`: 762 +For other aggregation types, including sub-aggregations, use `body_options`:
763 763
764 ```ruby 764 ```ruby
765 Product.search "orange", body_options: {aggs: {price: {histogram: {field: :price, interval: 10}}} 765 Product.search "orange", body_options: {aggs: {price: {histogram: {field: :price, interval: 10}}}