会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 133914个问题

java.lang.RuntimeException: org.springframework.data.elasticsearch.RestStatusException: Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]; nested exception is ElasticsearchStatusException[Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=Field [tags] is not a completion suggest field]]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=Field [tags] is not a completion suggest field]];
RestStatusException{status=400} org.springframework.data.elasticsearch.RestStatusException: Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]; nested exception is ElasticsearchStatusException[Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=Field [tags] is not a completion suggest field]]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=Field [tags] is not a completion suggest field]];
Caused by: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=Field [tags] is not a completion suggest field]]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=Field [tags] is not a completion suggest field]];

老师,启动之后搜索补齐关键字,发现底下没有关键词出来,然后看了一下日志发现报错信息是指定的字段(Field)"tags"不是一个完整的建议字段。 但我对比了下视频里的代码发现都是一样的,而且向ES同步商品数据是成功的,不知道怎么解决了

image.png

JAVA 全系列/第十九阶段:亿级高并发电商项目/亿级高并发电商项目(旧) 21676楼
JAVA 全系列/第一阶段:AI驱动的JAVA编程/面向对象详解和JVM底层内存分析 21677楼
Python 全系列/第一阶段:AI驱动的Python编程/编程基本概念 21678楼
JAVA 全系列/第一阶段:AI驱动的JAVA编程/JAVA入门和背景知识 21680楼
JAVA 全系列/第二阶段:JAVA 基础深化和提高/异常机制 21682楼

image.png

Python 全系列/第十一阶段:Flask百战电商后台项目/Flask百战电商后台项目 21684楼
Python 全系列/第七阶段:生产环境部署与协同开发/Linux系统概述与安装 21685楼
Python 全系列/第二阶段:Python 深入与提高/模块 21687楼

屏幕截图 2024-08-02 000537.png

老师您好,在本节中输入“

 yum install man-pages-zh-CN -y”命令后我也出现了

Loading mirror speeds from cached hostfile

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was

14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 未知的错误"

 的错误,然后我看到问答里有提到可以采用ping网来解决,在我输入 ping baidu.com后入上图所示,等了10分钟还是没反应,这要怎么解决呢?

Python 全系列/第七阶段:生产环境部署与协同开发/Linux基本命令 21689楼
JAVA 全系列/第一阶段:AI驱动的JAVA编程/面向对象详解和JVM底层内存分析 21690楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园
网站维护:百战汇智(北京)科技有限公司
京公网安备 11011402011233号    京ICP备18060230号-3    营业执照    经营许可证:京B2-20212637