作者您好:如果你看到的话麻烦帮忙哈,这是项目启动时报的一个错,不影响新增修改和通过关键字查询功能:
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分词不能使用问题这个注解打开了,是一样的错误,并且打开的话还会影响新增和修改功能
你好 从报错信息来看,是没有安装ik插件。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
哦哦 是的, 谢谢,昨天我安装了插件,已经能够基本实现查询等功能
登录 后才可以发表评论