求教大神,有什么办法能用前鼻音的拼音匹配到后鼻音的字,后鼻音也能匹配到前鼻音,现在是匹配不到的。
elasticsearch版本5.5.1,下面是建index的语句:
curl -XPUT "http://127.0.0.1:19200/suzhou2/" -d'{
"index": {
"analysis": {
"analyzer": {
"ik_pinyin_analyzer": {
"type": "custom",
"tokenizer": "ik_max_word",
"filter": ["my_pinyin", "word_delimiter"]
}
},
"filter": {
"my_pinyin": {
"type": "pinyin",
"first_letter": "prefix",
"padding_char": " "
}
}
}
}
}'
elasticsearch版本5.5.1,下面是建index的语句:
curl -XPUT "http://127.0.0.1:19200/suzhou2/" -d'{
"index": {
"analysis": {
"analyzer": {
"ik_pinyin_analyzer": {
"type": "custom",
"tokenizer": "ik_max_word",
"filter": ["my_pinyin", "word_delimiter"]
}
},
"filter": {
"my_pinyin": {
"type": "pinyin",
"first_letter": "prefix",
"padding_char": " "
}
}
}
}
}'
0 个回复