improve zh search with jieba

This commit is contained in:
fyears 2017-10-20 11:57:02 +08:00 committed by GitHub
parent 5194d1505c
commit 8c814ed2f3

View File

@ -240,7 +240,7 @@ class SearchChinese(SearchLanguage):
if JIEBA:
dict_path = options.get('dict')
if dict_path and os.path.isfile(dict_path):
jieba.set_dictionary(dict_path)
jieba.load_userdict(dict_path)
self.stemmer = get_stemmer()