兼容版本的Spring boot,弹性搜索和弹簧数据弹性搜索 [英] Compatible versions of Spring boot,elasticsearch and spring data elasticsearch

查看:1314
本文介绍了兼容版本的Spring boot,弹性搜索和弹簧数据弹性搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在开发一个使用弹簧引导,弹性搜索和弹簧数据弹性搜索的简单的java编程。



我可以使用下面的版本成功地进行弹性搜索
1)spring boot 1.3.5
2)spring-data-elasticsearch 1.3.4.RELEASE
3)elasticsearch 1.3.2



但是当我升级到以下版本时,我的一个服务类注释为@service注释,显示错误为


类型
org.elasticsearch.search.suggest.SuggestBuilder $ SuggestionBuilder
无法解析,它是从必需的.class
文件间接引用的。




  1)spring boot 1.5.1.RELEASE 
2)spring-data-elasticsearch 2.1.0.RELEASE
3)弹性搜索5.0.1
4)org.elasticsearch.client.transport 5.1.1

是这是不兼容的问题吗?如果是的话,请帮助我什么是兼容版本的spring boot,elasticsearch和spring data elasticsearch。

解决方案

Spring Data Elasticsearch的兼容版本集不支持Elasticsearch 5.0。请参阅此问题,以追踪一些支持5.0的工作。



一般来说,不是试图自己找到兼容版本,您应该让Spring Boot的依赖关系管理为您照顾。如果您将依赖关系管理重写为使用新的主要版本的依赖关系,那么非常有可能无法正常工作。


I have been developing a simple java programming using spring boot,elastic search and spring data elastic search.

I am able to do the elastic search successfully with below versions 1) spring boot 1.3.5 2) spring-data-elasticsearch 1.3.4.RELEASE 3) elasticsearch 1.3.2

but when i upgraded to the below versions,one of my service class annotated with @service annotation showing error as

"The type org.elasticsearch.search.suggest.SuggestBuilder$SuggestionBuilder cannot be resolved. It is indirectly referenced from required .class files".

     1) spring boot 1.5.1.RELEASE
     2) spring-data-elasticsearch 2.1.0.RELEASE
     3) elasticsearch 5.0.1
     4) org.elasticsearch.client.transport 5.1.1

is it the issue with incompatible verions? if yes,please help me what is the compatible versions of spring boot,elasticsearch and spring data elasticsearch.

解决方案

There isn't a compatible set of versions as Spring Data Elasticsearch doesn't support Elasticsearch 5.0 yet. See this issue that's tracking some of the work to support 5.0.

Generally speaking, rather than trying to find compatible versions yourself, you should let Spring Boot's dependency management take care of that for you. If you are overriding that dependency management to use a new major version of a dependency, there is a very good chance that it won't work.

这篇关于兼容版本的Spring boot,弹性搜索和弹簧数据弹性搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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