forked from gsi-upm/gsicrawler
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.sh
More file actions
34 lines (33 loc) · 927 Bytes
/
example.sh
File metadata and controls
34 lines (33 loc) · 927 Bytes
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
curl -X POST "http://localhost:9200/reddit/comment,article/_search?pretty" -H 'Content-Type: application/json' -d @- <<EOF
{
"aggs": {
"type": {
"terms": {
"field": "_type",
"order": {
"_count": "desc"
}
}
},
"comments": {
"filter": {"term": {"_type": "comment"}},
"subreddit": {
"terms": {
"field": "subreddit",
"order": {
"_count": "desc"
}
}
}
},
"subreddit": {
"terms": {
"field": "subreddit",
"order": {
"_count": "desc"
}
}
}
}
}
EOF