-
Notifications
You must be signed in to change notification settings - Fork 1
/
query_degree.json
55 lines (55 loc) · 1.12 KB
/
query_degree.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
{
"query": {
"bool": {
"must": [
{
"query_string": {
"query": "unsw_pcourse.code: 3778"
}
},
{
"term": {
"live": true
}
},
{
"bool": {
"minimum_should_match": "100%",
"should": [
{
"query_string": {
"fields": [
"unsw_pcourse.studyLevelURL"
],
"query": "undergraduate"
}
}
]
}
}
]
}
},
"aggs": {
"implementationYear": {
"terms": {
"field": "unsw_pcourse.implementationYear_dotraw",
"size": 100
}
},
"availableInYears": {
"terms": {
"field": "unsw_pcourse.availableInYears_dotraw",
"size": 100
}
}
},
"size": 100,
"_source": {
"includes": [
"versionNumber",
"availableInYears",
"implementationYear"
]
}
}