infinilabs / analysis-pinyin

🛵 This Pinyin Analysis plugin is used to do conversion between Chinese characters and Pinyin.
Apache License 2.0
2.94k stars 547 forks source link

分词器示例用法错误,仅pinyin可用 #300

Closed kelvin-qin closed 2 months ago

kelvin-qin commented 2 months ago

在使用pinyin分词器时,按照示例传入的“pinyin_analyzer”和“user_name_analyzer”时均报错找不到指定的分词器。这个是否已经全部统一为“pinyin”而文档未更新?

I'm using pinyin analysis version 8, specifically version 8.11.4, and testing according to the documentation I found that using both pinyin_analyzer and user_name_analyzer are wrong, has it been removed all together for version 8.x?

错误为: failed to find global analyzer [user_name_analyzer] status:400

kelvin-qin commented 2 months ago

失误,没有先PUT索引直接使用的_analyze。请忽略。