From 399cd66c7c9bb383e83a113e22bb9f294e6fbb62 Mon Sep 17 00:00:00 2001 From: varac Date: Tue, 18 Apr 2017 14:54:48 +0200 Subject: Query test names from elasticsearch --- elastic/query/test_names.json | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 elastic/query/test_names.json (limited to 'elastic/query/test_names.json') diff --git a/elastic/query/test_names.json b/elastic/query/test_names.json new file mode 100644 index 0000000..08f57a3 --- /dev/null +++ b/elastic/query/test_names.json @@ -0,0 +1,39 @@ +{ + "size": 0, + "query": { + "bool": { + "must": [ + { + "query_string": { + "analyze_wildcard": true, + "query": "commit_info.project:soledad AND commit_info.branch='master' AND machine_info.host='weasel'" + } + }, + { + "range": { + "datetime": { + "gte": 1483225200000, + "lte": 1492518132409, + "format": "epoch_millis" + } + } + } + ], + "must_not": [] + } + }, + "_source": { + "excludes": [] + }, + "aggs": { + "test_names": { + "terms": { + "field": "name", + "size": 100, + "order": { + "_count": "desc" + } + } + } + } +} -- cgit v1.2.3