简体   繁体   English

Spring Data是否支持Elasticsearch 5.x?

[英]Does Spring Data support Elasticsearch 5.x?

Does the latest version of Spring Data (2.1.0.RELEASE or 3.0.0M1) support Elasticsearch 5.x? 最新版本的Spring Data(2.1.0.RELEASE或3.0.0M1)是否支持Elasticsearch 5.x? If not, When will it support it? 如果没有,它何时会支持它?

There is no information about this in their docs: Spring Data Elasticsearch 在他们的文档中没有关于此的信息: Spring Data Elasticsearch

尚不支持,您可以尝试ES native java api。

Yes, now spring-data supports Elasticsearch v5.x. 是的,现在spring-data支持Elasticsearch v5.x. It's not supported with RELEASE version, it's supported with BUILD-SNAPSHOT version. 它不支持RELEASE版本,它受BUILD-SNAPSHOT版本的支持。 To use it, you have to add repository URL as well. 要使用它,您还必须添加存储库URL。 For maven project, build script will look something like- 对于maven项目,构建脚本看起来像 -

<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-elasticsearch</artifactId>
    <version>3.0.0.BUILD-SNAPSHOT</version>
</dependency>

<repository>
  <id>spring-libs-snapshot</id>
  <name>Spring Snapshot Repository</name>
  <url>http://repo.spring.io/libs-snapshot</url>
</repository>

For detail information, you can visit https://github.com/spring-projects/spring-data-elasticsearch 有关详细信息,请访问https://github.com/spring-projects/spring-data-elasticsearch

NB While writing this answer, latest version of elasticsearch and spring-data-elasticsearch was 5.4.2 and 3.0.0.BUILD-SNAPSHOT respectively. 注意:在撰写本文时,最新版本的elasticsearch和spring-data-elasticsearch分别为5.4.2和3.0.0.BUILD-SNAPSHOT。 Those two were compatible. 这两个是兼容的。

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

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