Spring Data是否支持Elasticsearch 5.x? [英] Does Spring Data support Elasticsearch 5.x?

查看:61
本文介绍了Spring Data是否支持Elasticsearch 5.x?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Spring Data的最新版本(2.1.0.RELEASE或3.0.0M1)是否支持Elasticsearch 5.x?如果没有,它将何时支持?

Does the latest version of Spring Data (2.1.0.RELEASE or 3.0.0M1) support Elasticsearch 5.x? If not, When will it support it?

在他们的文档中没有关于此的信息: Spring数据Elasticsearch

There is no information about this in their docs: Spring Data Elasticsearch

推荐答案

是的,现在spring-data支持Elasticsearchv5.x.RELEASE版本不支持,BUILD-SNAPSHOT版本支持.要使用它,您还必须添加存储库URL.对于Maven项目,构建脚本将类似于-

Yes, now spring-data supports Elasticsearch v5.x. It's not supported with RELEASE version, it's supported with BUILD-SNAPSHOT version. To use it, you have to add repository URL as well. For maven project, build script will look something like-

<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>

有关详细信息,您可以访问 https://github.com/spring-项目/spring-data-elasticsearch

For detail information, you can visit https://github.com/spring-projects/spring-data-elasticsearch

N.B.在撰写此答案时,elasticsearch和spring-data-elasticsearch的最新版本分别为5.4.2和3.0.0.BUILD-SNAPSHOT.这两个是兼容的.

这篇关于Spring Data是否支持Elasticsearch 5.x?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆