- 自定义分词器
put ip:9200/mytest
{
"settings": {
"analysis": {
"analyzer": {
"nik": {
"tokenizer": "ik_smart",
"filter": "n_length"
}
},
"filter": {
"n_length": {
"min": 2,
"max": 4,
"type": "length"
}
}
}
}
}