Query test names from elasticsearch
[scripts.git] / elastic / query / test_names.json
1 {
2   "size": 0,
3   "query": {
4     "bool": {
5       "must": [
6         {
7           "query_string": {
8             "analyze_wildcard": true,
9             "query": "commit_info.project:soledad AND commit_info.branch='master' AND machine_info.host='weasel'"
10           }
11         },
12         {
13           "range": {
14             "datetime": {
15               "gte": 1483225200000,
16               "lte": 1492518132409,
17               "format": "epoch_millis"
18             }
19           }
20         }
21       ],
22       "must_not": []
23     }
24   },
25   "_source": {
26     "excludes": []
27   },
28   "aggs": {
29     "test_names": {
30       "terms": {
31         "field": "name",
32         "size": 100,
33         "order": {
34           "_count": "desc"
35         }
36       }
37     }
38   }
39 }