我有Elasticsearch 2.4和我的许多索引,其中使用“雪球”分析器,但是今天我更新到5.1,这个分析器停止工作,为什么它们在哪里被删除,以及如何将我的“雪球”分析器转换为5.1中的等效分析器?
发布于 2017-01-26 13:06:08
主要原因是Lucene 5中删除了snowball分析器,取而代之的是english分析器(more info here)
但是,snowball token filter仍然存在,因此没有什么可以阻止您构建一个模仿snowball分析器的自定义分析器:
{
"settings": {
"analysis": {
"analyzer": {
"my_snowball": {
"type": "custom",
"tokenizer": "standard",
"filter": ["standard", "lowercase", "stop", "snowball"]
}
}
}
}
}https://stackoverflow.com/questions/41859821
复制相似问题