2.4.4 java client and 5.2.2 elasticserach cluster

Hi, I have setup the 5.2.2 es with jdk version 1.8.

The 5.2.2 java client required jdk1.8, But my application is still use the old jdk 1.7, it is hard to upgrade now. can I use the below client to access the laster elasticsearch cluster?

<dependency>
    <groupId>org.elasticsearch</groupId>
    <artifactId>elasticsearch</artifactId>
    <version>2.4.4</version>
</dependency>

No. But you can try to use the Low Level REST Client. https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/index.html

That said it's low level.

The High Level REST client we are building will require Java 8 as well. https://www.elastic.co/guide/en/elasticsearch/client/java-rest/master/java-rest-high.html

Thanks dadoonet.

I click your posted link, but all point to the version using jdk8.
Then I open the java-rest-low client, but it seems also using the jdk8.

Is it any extract client which I can use to connect to my 5.2.2 es cluster?

No: https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/_maven_repository.html

Hi, @dadoonet. It seems I can use the "low-level REST client" to communicate with my 5.2.2 elasticsearch.
"The low-level REST client is subject to the same release cycle as elasticsearch. Replace the version with the desired client version, first released with 5.0.0-alpha4. There is no relation between the client version and the elasticsearch version that the client can communicate with. The low-level REST client is compatible with all elasticsearch versions."

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