elasticsearch 拼音分词

curl -XPUT http://@127.0.0.1:8888/qianrushi/_settings -d’
{
“index” : {
“analysis” : {
“analyzer” : {
“pinyin_analyzer” : {
“tokenizer” : “my_pinyin”,
“filter” :
}
},
“tokenizer” : {
“my_pinyin” : {
“type” : “pinyin”,
“first_letter” : “append”,
“padding_char” : " "
}
}
}
}
}’