summaryrefslogtreecommitdiffstats
path: root/tests/files/search/GET_collapse_expand.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/files/search/GET_collapse_expand.txt')
-rw-r--r--tests/files/search/GET_collapse_expand.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/files/search/GET_collapse_expand.txt b/tests/files/search/GET_collapse_expand.txt
new file mode 100644
index 0000000..dc6b1a8
--- /dev/null
+++ b/tests/files/search/GET_collapse_expand.txt
@@ -0,0 +1,24 @@
+GET /my-index-000001/_search
+{
+ "query": {
+ "match": {
+ "message": "GET /search"
+ }
+ },
+ "collapse": {
+ "field": "user.id",
+ "inner_hits": [
+ {
+ "name": "largest_responses",
+ "size": 3,
+ "sort": [ "http.response.bytes" ]
+ },
+ {
+ "name": "most_recent",
+ "size": 3,
+ "sort": [ { "@timestamp": "asc" } ]
+ }
+ ]
+ },
+ "sort": [ "http.response.bytes" ]
+}