admin管理员组文章数量:1334481
在使用spring-boot-starter-data-elasticsearch 判断索引是否存在时日志返回 warnings :
[ignore_throttled] parameter is deprecated because frozen indices have been deprecated. Consider cold or frozen tiers in place of frozen indices.
[ignore_throttled]参数已被弃用,因为冻结索引已被弃用。考虑用冷层或冻结层代替冻结指数。
引入的maven包
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>
代码如下:
[ignore_throttled]参数已被弃用 应该是版本的问题,在java中经常会有某个参数在高版本中被废弃使用了。那我们换成对应的版本。
怎么找对应的版本呢。去官网啊
链接地址:
Spring Data Elasticsearch - Reference Documentation
具体版本对应关系
下表显示了Spring Data发布序列使用的Elasticsearch版本和其中包含的Spring Data Elasticsearch版本,以及引用特定Spring Data发布系列的Spring Boot版本。给出的Elasticsearch版本显示了Spring Data Elasticsearch是用哪些客户端库构建和测试的。
换成对应的版本就行.我们ES版本是7.17.0 换成对应的版本client 就OK了
springboot版本由 2.5.6——>2.7.0
升级spring-boot-starter-data-elasticsearch
再次运行 没有那个warnings了
本文标签: parameterignorethrottledESindicesfrozen
版权声明:本文标题:【ES】[ignore_throttled] parameter is deprecated because frozen indices have been deprecated. Consider 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/biancheng/1738333311a2076444.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论