ElasticSearch 5.1.1 support on Spring Boot 1.4.1 - elasticsearch

I'm trying to connect to ES cluster version 5.1.1 on AWS and I'm getting error
java.io.StreamCorruptedException: invalid internal transport message format, got (48,54,54,50)
The application is built using spring-boot-starter-data-elasticsearch. The same app works with ES 2.4 version so I'm thinking this is version compatibility issue. Is there a upgrade or support for ES 5.1.1 in Spring Boot and Spring Data ?

As of today the currently supported elastic search version is elaseticsearch 2.x(*<5) if you're using the available stable release of spring data elastic search(2.x) as you can see in this compatibility matrix link.
I believe that support for elastic search 5.x is planned for spring data elasticsearch(need confirmation) 3.x that is currently M1 but then I think you need to bump also your spring boot version.

Related

Spring Data Version Compatibility VS Elasticsearch version Compatibility

I have my Spring version as 3.0.5 and ElasticSearch version as 5.6.10.
Now, I want to migrate Elasticsearch version to 6.3. So, will my Spring be compatible with ElasticSearch 6.3 version.
Thank you
Concerning this README file on git project of spring-data-elasticsearch, you can use Elasticsearch 6.5.0 with Spring Data Elasticsearch 3.2.x.
I haven't tried it yet, but you can give it a try!

Elasticsearch and Spring Compatibility (March 2019)

I am going to start a Spring Data Elasticsearch project but looking on the net, I haven't managed to understand what versions I should use.
I want to use Elasticsearch 5.5.
What versions of Spring Boot and Spring Data Elasticsearch should I use?
Thank you!
On this Spring github page https://github.com/spring-projects/spring-data-elasticsearch/wiki/Spring-Data-Elasticsearch---Spring-Boot---version-matrix, you can find compatible versions of Spring Boot, Spring Data ElasticSearch and ElasticSearch.
Currently supported versions of ElasticSearch are < 5.0.0
Edit: This page I posted is probably outdated. I'm sorry for confusing.
On git project of spring-data-elasticsearch is in README that for using Elasticsearch 5.5.0 you can use Spring data elasticsearch 3.0.x https://github.com/spring-projects/spring-data-elasticsearch

Spring Data Elasticsearch 3.0.6 - Compatibility

I am wondering which version of Elasticsearch does Spring Data Elasticsearch 3.0.6 support?
Currently I am working with Elasticsearch 6.2, is this compatible?
Right now I am using the Elasticsearch Rest Client for Java, but since I am using Spring I thought about using Spring Data Elasticsearch.
According to the POM of the 3.0.6 release, the supported version is 5.5.0

Does Spring-data-elasticsearch works with Spring 3.1.2 version?

I would like to use the spring data elastic search capability with spring 3.1.2. Does spring data elastic search works with spring 3.1.2 version.?
Spring elastic search is available under spring data release of 1.1x and 1.3x. Spring Data 1.1x required Java 1.6 or later. Spring Data 1.3x required Java 1.7 or later.
You are relating SpringData elastic search functionality with SpringFramework version. It does all dependent on which java version you are supposed going to using. Please find the detail and supporting link below for your reference.
Spring framework requirment noted below. You can find them under Mininum Requirment section in the Link
Minimum requirements of Spring Framework
•JDK 6+ for Spring Framework 4.x
•JDK 5+ for Spring Framework 3.x
Spring data elastic search minimun requrirment noted down. You can find them under note section of below Link
Minimum requirements for elastic search
Spring data elaticsearch until 1.0.0.RELEASE version is on
elasticsearch 1.1.x library, which uses java 1.6 or later version
From spring data elasticsearch 1.1.0.RELEASE the version of
elasticsearch is 1.3.x which is supporting java 1.7 or later
Next Time You Require any dependency information just go to mvnrepository.com and just select the project and its version it will show complete dependency list over there
http://mvnrepository.com/artifact/org.springframework.data/spring-data-elasticsearch/1.0.0.RELEASE
Now Answer to Your Question.
No Spring Data ElasticSearch does not work with Spring 3.1.2 it Requires Minimum Spring 4.2.5 RELEASE

ElasticSearch version supported in Spring Data

I am using Spring Data ElasticSearch 1.3.2 release, which comes with ElasticSearch 1.5.2 by default. Is it possible to upgrade to the latest version of ES (2.0) without breaking the Spring Data ES repository API ?
No. Due to several changes in the ES API this is not possible. Please see DATAES-211 for details.
The current unstable working branch can be found here: tree/DATAES-211-ES2.0

Resources