forked from lzjun567/python_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimage_download.py
More file actions
47 lines (40 loc) · 1.47 KB
/
Copy pathimage_download.py
File metadata and controls
47 lines (40 loc) · 1.47 KB
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
{"query": {"function_score": {"query": {
"bool": {"should": [{"multi_match": {"query": "python", "fields": ["nickname^2", "username^4"]}}],
"filter": {"range": {"follower_count": {"gte": "50000", "lte": "100000"}}}}},
"field_value_factor": {"field": "follower_count", "modifier": "log1p", "missing": 0,
"factor": 1}, "boost_mode": "avg"}},
"highlight": {"fields": {"nickname": {}, "description": {}}}, "size": 10, "from": 0}
{
"query": {
"function_score": {
"query": {
"bool": {"must": [{
"multi_match": {
"query": "python",
"fields": ["nickname^2", "username^4"]
}}],
"filter": {"range": {
"follower_count": {
"gte": "50000",
"lte": "100000"
}
}}}
},
"field_value_factor": {
"field": "follower_count",
"modifier": "log1p",
"missing": 0,
"factor": 1
},
"boost_mode": "avg"
}
},
"highlight": {
"fields": {
"nickname": {},
"description": {}
}
},
"size":10,
"from": 0
}