【发布时间】:2020-09-10 13:32:06
【问题描述】:
我正在开发我的第一个应用程序,它使用 elasticsearch (7.4.0) 作为数据库,并用于该 spring 数据 elasticsearch (spring boot 版本是 2.2.6),一切正常,但我仍然收到以下警告在我运行我的应用程序时记录消息。
Using include_type_name in put mapping requests is deprecated. The parameter will be removed in the next major version."]
[types removal] Specifying types in search requests is deprecated."]
我知道自 7.0.0 版本以来的类型删除,但我该如何解决这个问题,我的意思是我应该更改我的 spring boot 版本还是我的 elasticsearch 版本,我怎样才能删除那些警告消息?忽略这些警告会影响申请流程吗?
【问题讨论】:
-
您正在尝试设置results in the warming 的
include_type_name参数,您可以分享您的PUT正文吗? -
请求由spring数据生成。
标签: java spring-boot elasticsearch spring-data-elasticsearch