Commit fc533da8 authored by 段英荣's avatar 段英荣

modify

parent 9d693cfb
......@@ -143,7 +143,7 @@ class GroupUtils(object):
}
result_dict = ESPerform.get_search_results(ESPerform.get_cli(),"topic",q,aggregations_query=True)
buckets_list = result_dict["aggregations"]["buckets"]
buckets_list = result_dict["aggregations"]["group_ids"]["buckets"]
sorted_buckets_list = sorted(buckets_list,key=lambda item:item["max_date"]["value"],reverse=True)
sorted_group_id_list = [item["key"] for item in sorted_buckets_list]
......
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