From cc0d26309cf49bf4ddcf8b2fadf2529dac353a72 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 30 Dec 2017 12:23:53 -0800 Subject: [PATCH] Added note about sub-aggreations to readme - closes #1047 [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8a566ad..6355e4d 100644 --- a/README.md +++ b/README.md @@ -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}}} -- libgit2 0.21.0