curl -XPUT http://172.16.0.29:9401/medcl/ -d'{ "index" : { "analysis" : { "analyzer" : { "index_pinyin_analyzer" : { "tokenizer" : "index_pinyin_tokenizer" },"search_pinyin_analyzer" : {"tokenizer" : "search_pinyin_tokenizer" } }, "tokenizer" : { "index_pinyin_tokenizer" : { "type" : "pinyin", "keep_separate_first_letter" : true, "keep_full_pinyin" : true, "keep_original" : true,"keep_joined_full_pinyin" : true, "limit_first_letter_length" : 16, "lowercase" : true },"search_pinyin_tokenizer" : { "type" : "pinyin", "keep_separate_first_letter" : false,"keep_joined_full_pinyin" : true, "keep_full_pinyin" : true, "keep_original" : true, "limit_first_letter_length" : 16, "lowercase" : true } } } }}'
自动补全java关键字_请教使用elasticsearch-analysis-pinyin分词实现suggest字段关键字自动补全问题...
最新推荐文章于 2024-05-23 01:48:42 发布