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