Commit 04978288 authored by litaolemo's avatar litaolemo

update

parent f2be87dd
......@@ -50,12 +50,12 @@ def get_releaserUrls_from_es(platform,
if releaser is not None:
releaser_dict = {"term": {"releaser.keyword": releaser}}
search_body['query']['bool']['filter'].append(releaser_dict)
if frequency is not None:
frequency_dict = {"range": {"frequency": {"gte": frequency}}}
search_body['query']['bool']['filter'].append(frequency_dict)
if project_tags:
frequency_dict = {"terms":{"project_tags.keyword":project_tags}}
search_body['query']['bool']['filter'].append(frequency_dict)
# if frequency is not None:
# frequency_dict = {"range": {"frequency": {"gte": frequency}}}
# search_body['query']['bool']['filter'].append(frequency_dict)
# if project_tags:
# 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,
......
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