Commit cf723779 authored by 李小芳's avatar 李小芳

Merge branch 'zhengshuang' into 'master'

add

See merge request !89
parents 3bc12018 cb70ce15
......@@ -208,9 +208,10 @@ def get_query_by_es(query='', lat=0, lng=0, size=0, offset=0, highlight_query=No
offset=offset, size=size, is_suggest_request=True)
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("超声刀","超声提升")
hit_item["_source"]["ori_name"] = hit_item["_source"]["ori_name"].replace("超声刀", "超声提升")
hit_item["_source"]["ori_name"] = hit_item["_source"]["ori_name"].replace("私密超声刀", "私密超声紧致")
if hit_item["_source"]["ori_name"] not in have_read_tips_set:
if hit_item["_source"]["ori_name"] not in have_read_tips_set and "郑爽" not in hit_item["_source"][
"ori_name"]:
have_read_tips_set.add(hit_item["_source"]["ori_name"])
highlight_marks = u'<ems>%s</ems>' % query
# hit_item["_source"]["highlight_name"] = hit_item["_source"]["ori_name"].replace(query,
......@@ -255,7 +256,8 @@ def get_query_by_es(query='', lat=0, lng=0, size=0, offset=0, highlight_query=No
get_doctor_hospital_data.append(hit_item["_source"])
else:
if hit_item["_source"]["results_num"] > 0:
hit_item["_source"]["describe"] = "约" + str(hit_item["_source"]["results_num"]) + "个结果" if \
hit_item["_source"]["describe"] = "约" + str(
hit_item["_source"]["results_num"]) + "个结果" if \
hit_item["_source"]["results_num"] else ""
if hit_item["_source"]["ori_name"] == query:
tag_equal_query.append(hit_item["_source"])
......
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