Commit 3e259101 authored by litaolemo's avatar litaolemo

update

parent 1993796b
......@@ -284,7 +284,7 @@ def get_hot_crawler_data_count(index, start_ts):
"query": {
"bool": {
"filter": [
{"range": {"fetch_time": {"gte": start_ts}}}
{"range": {"fetch_time": {"gte": int(start_ts)}}}
], "must_not": [
{"exists": {"field": "search_word"}}
]
......@@ -299,7 +299,7 @@ def get_hot_crawler_data_count(index, start_ts):
}
}
print(search_body)
search_res = es_framework.search(body=search_body, index=index)
search_res = es_framework.search(body=search_body, index=index,ignore_throttled=True,ignore_unavailable=True)
platform_count = search_res["aggregations"]["NAME"]["buckets"]
return platform_count
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment