From 45e4cd9537f289a98579eef36a2dc3e561cc48fa Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 25 Aug 2020 18:33:39 -0700 Subject: move tests around --- tests/files/search/GET_search_agg_nested.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/files/search/GET_search_agg_nested.txt (limited to 'tests/files/search/GET_search_agg_nested.txt') diff --git a/tests/files/search/GET_search_agg_nested.txt b/tests/files/search/GET_search_agg_nested.txt new file mode 100644 index 0000000..8e5d1c1 --- /dev/null +++ b/tests/files/search/GET_search_agg_nested.txt @@ -0,0 +1,16 @@ +GET /products/_search +{ + "query": { + "match": { "name": "led tv" } + }, + "aggs": { + "resellers": { + "nested": { + "path": "resellers" + }, + "aggs": { + "min_price": { "min": { "field": "resellers.price" } } + } + } + } +} -- cgit v1.2.3