本bug在windows版本 ES 7.7.0 和 7.15.2 中都可以再现
ik分词器已安装, 并导入了扩展停止词 extra_stopword.dic
Step1, 先建立一个索引.
在此之前, 请确保已经安装分词器插件ik
PUT /test
{
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0
},
"mappings": {
"dynamic": "strict",
"properties": {
"title": {
"type": "text",
"analyzer": "ik_max_word",
"search_analyzer": "ik_smart"
}
}
}
}
Step2, 批量导入几笔数据:
POST _bulk
{ "index" : { "_index" : "test", "_id" : "1" } }
{ "title" : "【aben sky found】 最大华人车行!限量超跑,优质二手车买卖,最高价现金收购二手车!" }
{ "index" : { "_index" : "test", "_id" : "2" } }
{ "title" : "【aben sky found】最大华人车行!限量超跑,优质二手车买卖,最高价现金收购二手车!" }
{ "index" : { "_index" : "test", "_id" : "3" } }
{ "title" : "Regenwald Leasing 最大华人车行!限量超跑,优质二手车买卖,最高价现金收购二手车!" }
{ "index" : { "_index" : "test", "_id" : "4" } }
{ "title" : "【Regenwald Leasing】最大华人车行!限量超跑,优质二手车买卖,最高价现金收购二手车!" }
{ "index" : { "_index" : "test", "_id" : "5" } }
{ "title" : "Regenwald Leasing 最大华人车行! 限量超跑,优质二手车买卖,最高价现金收购二手车!" }
{ "index" : { "_index" : "test", "_id" : "6" } }