排除单字的搜索,单字搜索的错误率较高
This commit is contained in:
@@ -193,7 +193,7 @@ def save_or_update_ie(table, pk_phhd, data):
|
||||
|
||||
def search_hospital(hospital):
|
||||
def _filter_search_keywords(keywords):
|
||||
keywords = [x for x in keywords if x not in HOSPITAL_FILTER]
|
||||
keywords = [x for x in keywords if x not in HOSPITAL_FILTER and len(x) > 1]
|
||||
result1 = ""
|
||||
result2 = ""
|
||||
for keyword in keywords:
|
||||
|
||||
Reference in New Issue
Block a user