Commit 72be759b authored by lixiaofang's avatar lixiaofang

add

parent 9d924b2c
...@@ -70,8 +70,7 @@ class GroupUtils(object): ...@@ -70,8 +70,7 @@ class GroupUtils(object):
} }
MAX_LOAD = 1000 MAX_LOAD = 1000
sizes = max(size, MAX_LOAD) sizes = max(size, MAX_LOAD)
result_dict = ESPerform.get_search_results(es_cli_obj, "pictorial", q, offset=0, size=sizes)
result_dict = ESPerform.get_search_results(es_cli_obj, "pictorial", q, offset, sizes)
pictorial_ids_list = [] pictorial_ids_list = []
if len(result_dict["hits"]) > 0: if len(result_dict["hits"]) > 0:
...@@ -172,7 +171,7 @@ class GroupUtils(object): ...@@ -172,7 +171,7 @@ class GroupUtils(object):
} }
} }
topic_ids_list = [] topic_ids_list = []
result_dict = ESPerform.get_search_results(es_cli_obj, "topic", q, offset, size) result_dict = ESPerform.get_search_results(es_cli_obj, "topic", q, offset=0, size=sizes)
if len(result_dict["hits"]) > 0: if len(result_dict["hits"]) > 0:
topic_ids_list = [item["_source"]["id"] for item in result_dict["hits"]] topic_ids_list = [item["_source"]["id"] for item in result_dict["hits"]]
......
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