231 Star 1.4K Fork 536

zhoudong / springboot-elasticsearch

 / 详情

调用搜索,命中关键字高亮的两个接口报错

待办的
创建于  
2018-12-29 16:43

作者您好:如果你看到的话麻烦帮忙哈,这是项目启动时报的一个错,不影响新增修改和通过关键字查询功能:
2018-12-29 16:38:16.852 ERROR 27440 --- [nio-2018-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is Failed to execute phase [query], all shards failed; shardFailures {[VcIrJ1Q9TpKkmOsuq31eNA][orders][0]: RemoteTransportException[[VcIrJ1Q][10.10.11.58:9300][indices:data/read/search[phase/query]]]; nested: QueryShardException[[multi_match] analyzer [ik_max_word] not found]; }{[VcIrJ1Q9TpKkmOsuq31eNA][orders][1]: RemoteTransportException[[VcIrJ1Q][10.10.11.58:9300][indices:data/read/search[phase/query]]]; nested: QueryShardException[[multi_match] analyzer [ik_max_word] not found]; }{[VcIrJ1Q9TpKkmOsuq31eNA][orders][2]: RemoteTransportException[[VcIrJ1Q][10.10.11.58:9300][indices:data/read/search[phase/query]]]; nested: QueryShardException[[multi_match] analyzer [ik_max_word] not found]; }{[VcIrJ1Q9TpKkmOsuq31eNA][orders][3]: RemoteTransportException[[VcIrJ1Q][10.10.11.58:9300][indices:data/read/search[phase/query]]]; nested: QueryShardException[[multi_match] analyzer [ik_max_word] not found]; }{[VcIrJ1Q9TpKkmOsuq31eNA][orders][4]: RemoteTransportException[[VcIrJ1Q][10.10.11.58:9300][indices:data/read/search[phase/query]]]; nested: QueryShardException[[multi_match] analyzer [ik_max_word] not found]; }] with root cause
这是调用搜索,命中关键字高亮和搜索,命中关键字高亮报的错。
org.elasticsearch.index.query.QueryShardException: [multi_match] analyzer [ik_max_word] not found
我花了很长时间还是没解决这个问题,我也把@Mapping(mappingPath = "productIndex.json") // 解决IK分词不能使用问题这个注解打开了,是一样的错误,并且打开的话还会影响新增和修改功能

评论 (2)

Literature 创建了任务

你好 从报错信息来看,是没有安装ik插件。

哦哦 是的, 谢谢,昨天我安装了插件,已经能够基本实现查询等功能

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
Java
1
https://gitee.com/11230595/springboot-elasticsearch.git
git@gitee.com:11230595/springboot-elasticsearch.git
11230595
springboot-elasticsearch
springboot-elasticsearch

搜索帮助