-
Notifications
You must be signed in to change notification settings - Fork 2
/
query_template.json
63 lines (63 loc) · 1.13 KB
/
query_template.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
{
"from" : 0,
"size" : 200,
"query": {
"filtered": {
"query": {
"bool": {
"must": [
{
"term": {
"dataset.raw": "S1-SLCP"
}
},
{
"term": {
"system_version.raw": "<SLCP_VERSION>"
}
}
],
"should": [
{
"range": {
"starttime": {
"from": "<START_TIME>",
"to": "<END_TIME>"
}
}
},
{
"range": {
"endtime": {
"from": "<START_TIME>",
"to": "<END_TIME>"
}
}
}
]
}
},
"filter": {
"geo_shape": {
"location": {
"shape": {
"type": "polygon",
"coordinates": []
}
}
}
}
}
},
"sort": [
{
"_timestamp": {
"order": "desc"
}
}
],
"fields": [
"_timestamp",
"_source"
]
}