简体   繁体   English

如何在 spring-boot 中指定较新版本的 Elasticsearch

[英]How to specify a newer version of Elasticsearch in spring-boot

How to specify a newer version of Elasticsearch in spring-boot for the following library.如何在 spring-boot 中为以下库指定更新版本的 Elasticsearch。 This needs to be a gradle dependency这需要是一个gradle依赖

compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-elasticsearch', version: '2.3.4.RELEASE'

    say 7.9.1 instead of 7.6.2

Will it work against a newer version?它会适用于较新的版本吗?

You don't need to update your application to a newer version if you do not use some native Elasticsearch library stuff in your application which is not available in 7.6.2.如果您不在应用程序中使用 7.6.2 中不可用的某些本机 Elasticsearch 库内容,则无需将应用程序更新到较新版本。

Spring Data Elasticsearch 4.0.4 (pulled in by Spring Boot 2.3.4) is built with the Elasticsearch client libraries in version 7.6.2, but these client libraries can communicate with an Elasticsearch cluster in version 7.9.1, there were no changes in the client communication protocol as far as I know. Spring Data Elasticsearch 4.0.4(由 Spring Boot 2.3.4 引入)是使用 7.6.2 版本的 Elasticsearch 客户端库构建的,但这些客户端库可以与 7.9.1 版本的 Elasticsearch 集群通信,在据我所知,客户端通信协议。

You will get a warning in the log:您将在日志中收到警告:

WARN [main] osdelasticsearch.support.VersionInfo : Version mismatch in between Elasticsearch Client and Cluster: 7.6.2 - 7.9.1警告 [main] osdelasticsearch.support.VersionInfo:Elasticsearch 客户端和集群之间的版本不匹配:7.6.2 - 7.9.1

but you can ignore that.但你可以忽略它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM