Commit 14958d22 authored by 段英荣's avatar 段英荣

modify

parent 44b40bbe
......@@ -39,6 +39,7 @@ def query_tag(query,offset,size):
result_dict = ESPerform.get_search_results(ESPerform.get_cli(),sub_index_name="tag",query_body=q,offset=offset,size=size)
for hit_item in result_dict["hits"]:
hit_item["_source"]["highlight"] = hit_item["highlight"]
ret_list.append(hit_item["_source"])
return {"tag_list": ret_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