infinilabs / analysis-pinyin

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

es 8.5X版本无法建立mapping #281

Open linjuchen opened 1 year ago

linjuchen commented 1 year ago

{"settings":{"max_result_window":1000000000,"analysis":{"analyzer":{"pinyin_analyzer":{"tokenizer":"my_pinyin"}},"tokenizer":{"my_pinyin":{"type":"pinyin","keep_separate_first_letter":true,"keep_full_pinyin":true,"keep_original":false,"limit_first_letter_length":16,"lowercase":true,"remove_duplicated_term":true}}}},"mappings":{"properties":{"id":{"type":"integer","index":true},"sn":{"type":"text","index":true},"account":{"type":"text","index":true},"name":{"type":"text","fields":{"pinyin":{"type":"text","store":false,"term_vector":"with_offsets","analyzer":"pinyin_analyzer","boost":10}}},"wx_logo":{"type":"text","index":false},"wx_nickname":{"type":"text","index":false},"status":{"type":"integer","index":true},"id_num":{"type":"text","index":true},"biz_id":{"type":"text","index":true},"email":{"type":"text","index":true},"check_status":{"type":"integer","index":true},"is_del":{"type":"integer","index":true},"last_login_date":{"type":"date","index":true,"format":"yyyy-MM-dd HH:mm:ss"},"created_at":{"type":"date","index":true,"format":"yyyy-MM-dd HH:mm:ss"},"updated_at":{"type":"date","index":true,"format":"yyyy-MM-dd HH:mm:ss"}}}}

报错!

xuanyuanbao commented 1 year ago

兄弟,你这个是使用的哪个版本啊