3
votes

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.

2

2 Answers

6
votes

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.

1
votes

Spring Data ES 3.0.0M4 release is compatible with ES 5.0 - Ref - DATAES-285