mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #4168 from fyears/patch-1
improve zh search with jieba
This commit is contained in:
@@ -240,7 +240,7 @@ class SearchChinese(SearchLanguage):
|
|||||||
if JIEBA:
|
if JIEBA:
|
||||||
dict_path = options.get('dict')
|
dict_path = options.get('dict')
|
||||||
if dict_path and os.path.isfile(dict_path):
|
if dict_path and os.path.isfile(dict_path):
|
||||||
jieba.set_dictionary(dict_path)
|
jieba.load_userdict(dict_path)
|
||||||
|
|
||||||
self.stemmer = get_stemmer()
|
self.stemmer = get_stemmer()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user