会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 132477个问题
JAVA 全系列/第二阶段:JAVA 基础深化和提高/网络编程 21586楼
JAVA 全系列/第二阶段:JAVA 基础深化和提高/容器(旧) 21588楼

DEMO18.7z

代码上传了,不知道为什么会这样


image.png




Python 全系列/第八阶段:轻量级Web开发利器-Flask框架/Flask高级 21589楼

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 全系列/第十八阶段:亿级高并发电商项目/亿级高并发电商项目(旧) 21591楼
JAVA 全系列/第一阶段:JAVA 快速入门/面向对象详解和JVM底层内存分析 21592楼
JAVA 全系列/第一阶段:JAVA 快速入门/JAVA入门和背景知识 21595楼
JAVA 全系列/第二阶段:JAVA 基础深化和提高/异常机制 21597楼

image.png

Python 全系列/第十阶段:Flask百战电商后台项目/Flask百战电商后台项目 21599楼
Python 全系列/第六阶段:生产环境部署与协同开发/Linux系统概述与安装 21600楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

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