-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathquery.json
91 lines (75 loc) · 1.65 KB
/
query.json
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"query": {
"filtered" : {
"query" : {
"match_all" : {}
},
"filter" : {
"geo_distance" : {
"distance" : "10km",
"Location" : {
"lat" : 46.9479686
"lon" : 7.4440373
}
}
}
}
}
}
{"query":
{"filtered":
{"query":
{"geo_bounding_box":
{"Location":
{"bottom_right":
{"lat":46.91017109024989,
"lon":7.50743865966797},
"top_left":
{"lat":46.99079175995039,
"lon":7.3519134521484375}
}
}
},
"filter":
{"bool":
{"must":[
{"range":
{"Date":
{"gte":1463728638043,
"lte":1463771838043,
"format":"epoch_millis"
}
}
}],"must_not":[]
}
}
}
},
"size":0,
"aggs":
{"2":
{"date_histogram":
{"field":"Date",
"interval":"10m",
"time_zone":"Europe/Berlin",
"min_doc_count":1,
"extended_bounds":
{"min":1463728638041,"max":1463771838041}
},
"aggs":
{"3":
{"terms":
{"field":"Portalname",
"size":9,
"order":{"1":"desc"}
},
"aggs":
{"1":
{"cardinality":
{"field":"Enemy"}
}
}
}
}
}
}}