elasticsearch 报错记录:Elasticsearch exception [type=index_not_found_exception, reason=no such index]
环境:spring bootelasticsearch-rest-high-level-client-6.6.0.jar报错日志:Elasticsearch exception [type=index_not_found_exception, reason=no such index]解决方式:// 创建搜索请求SearchRequest searchRequest = new SearchReq
·
环境:
- spring boot
- elasticsearch-rest-high-level-client-6.6.0.jar
报错日志:
Elasticsearch exception [type=index_not_found_exception, reason=no such index]
解决方式:
// 创建搜索请求
SearchRequest searchRequest = new SearchRequest(index,type);
改成
// 创建搜索请求
SearchRequest searchRequest = new SearchRequest(index);
更多推荐
已为社区贡献1条内容
所有评论(0)