Commit f2be87dd authored by litaolemo's avatar litaolemo

update

parent 6fddcd75
......@@ -57,11 +57,12 @@ def get_releaserUrls_from_es(platform,
frequency_dict = {"terms":{"project_tags.keyword":project_tags}}
search_body['query']['bool']['filter'].append(frequency_dict)
# print(target_index,doc_type_target_releaser,search_body)
print(search_body)
search_resp=es_framework.search(index=target_index,
body=search_body,
size=0,
request_timeout=100)
total_hit = search_resp['hits']['total']
total_hit = search_resp['hits']['total']["value"]
print(search_resp)
releaserUrl_Lst = []
if total_hit > 0:
......
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