Java Client or Spring Boot for ElasticSearch 7.3.1

Hi,

I am not able to find a solution to access the elasticsearch 7.3.1 via Java Client. I tried Spring Boot, TransportClient but I always get the version error:
java.lang.IllegalStateException: Received message from unsupported version: [6.4.3] minimal compatible version is: [6.8.0]

I technically want to do it using Spring Boot but if there is any other Java based solution to access elasticsearch 7.3.1 version then it would be fine as well.

Thanks,
Mark Sirus

When using springboot with
elasticsearch, you need to be explicit with some transitive dependencies as SpringBoot declares a version 6.4...

Basically you can put this in your pom.xml:

<properties>
  <elasticsearch.version>7.3.0<elasticsearch.version>
</properties>

See documentation here: https://docs.spring.io/spring-boot/docs/current/reference/html/howto-build.html#howto-customize-dependency-versions

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.