Commit fdd4f102 authored by lixiaofang's avatar lixiaofang

add

parent f206c06f
......@@ -206,7 +206,6 @@ def get_query_by_es(query='', lat=0, lng=0, size=0, offset=0, highlight_query=No
tag_equal_query = list()
result_dict = ESPerform.get_search_results(ESPerform.get_cli(), sub_index_name=sub_index_name, query_body=q,
offset=offset, size=size, is_suggest_request=True)
print(result_dict)
for tips_item in result_dict["suggest"]["tips-suggest"]:
for hit_item in tips_item["options"]:
hit_item["_source"]["ori_name"] = hit_item["_source"]["ori_name"].replace("超声刀","超声提升")
......
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