Commit 8fcec0ae authored by 李小芳's avatar 李小芳

Merge branch 'hot_search_word' into 'master'

灰度测试

See merge request !70
parents 020adb71 0c6d8275
......@@ -31,14 +31,13 @@ def get_suggest_tips(query, lat, lng, offset=0, size=50, device_id=None):
"""
try:
###在原来的逻辑上加两层灰度
gray_number = 1
if gray_number == 1:
sub_index_name = "suggest"
size = 50
else:
###在原来的逻辑上加两层灰度
if device_id in ["68335D20-760F-41C1-9A00-8F9B4C0D62DB"]:
sub_index_name = "suggest-v1"
size = 30
else:
sub_index_name = "suggest"
have_read_tips_set, ret_list, result_dict = get_query_by_es(query=str(query).lower(), lat=lat, lng=lng,
offset=offset,
......
......@@ -13,7 +13,7 @@ from search.utils.auto_tips import get_suggest_tips
@bind("search_tips/search/auto_complete_query")
def auto_complete_query(q, lat, lng, device_id=None):
def auto_complete_query(q="", lat=0, lng=0, device_id=None):
try:
"""auto complate words/tags/doctors etc.
......
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