会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 132358个问题
Python 全系列/第七阶段:网页编程基础/JavaScript语言 2011楼
Python 全系列/第四阶段:函数式编程和核心特性/python新特性 2012楼
Python 全系列/第八阶段:轻量级Web开发利器-Flask框架/Flask视图基础和URL 2013楼

image.png

Python 全系列/第八阶段:轻量级Web开发利器-Flask框架/Flask视图基础和URL 2014楼

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 全系列/第十八阶段:亿级高并发电商项目/亿级高并发电商项目(旧) 2015楼
Python 全系列/第一阶段:Python入门/编程基本概念 2016楼
Python 全系列/第十五阶段:Python 爬虫开发/爬虫基础 2017楼
Python 全系列/第三阶段:Python 网络与并发编程/并发编程 2018楼
Python 全系列/第十五阶段:Python 爬虫开发/爬虫基础 2019楼
Python 全系列/第十五阶段:Python 爬虫开发/scrapy框架使用 2020楼
Python 全系列/第七阶段:网页编程基础/JavaScript语言 2021楼
Python 全系列/第十九阶段:数据分析-数据管理/Pandas基本使用 2022楼
Python 全系列/第十九阶段:数据分析-数据管理/Pandas基本使用 2023楼
Python 全系列/第一阶段:Python入门/编程基本概念 2024楼
Python 全系列/ 第十四阶段:自动化操作办公软件、邮件、定时任务等/办公自动化 2025楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

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