org.elasticsearch.index.mapper.MapperParsingException: analyzer [ik_max_word] not found for field [t
1、问题:运行 springboot 项目,idea 控制台报错:elasticsearch 创建索引时遇到 analyzer [ik_max_word] not found for field [name] ;2020-11-20 20:01:00.993 ERROR 2242 --- [restartedMain] .d.e.r.s.AbstractElasticsearchRepositor
·
1、问题:
运行 springboot 项目,idea 控制台报错:
elasticsearch 创建索引时遇到 analyzer [ik_max_word] not found for field [name] ;
2020-11-20 20:01:00.993 ERROR 2242 — [ restartedMain] .d.e.r.s.AbstractElasticsearchRepository : failed to load elasticsearch nodes : org.elasticsearch.index.mapper.MapperParsingException: analyzer [ik_max_word] not found for field [title]
2、原因
IK分词器插件 未安装;
未安装原因:mac brew 安装的 elasticsearch 版本只有两个选择,为适应项目版本,于是安装了 elasticsearch 6.8.13 ,才发现,这个版本没有 ik 分词器。☹️
源文转自:
解决办法
更多推荐
已为社区贡献1条内容
所有评论(0)