We are running elasticsearch on AWS which currently supports elasticsearch 6.3 as the latest version.
We have a business case where we need to update all the documents in the index and remove one nested object everyday. There is elasticsearch's Update by query API which will solve our purpose.
But in our java application we are using Java high level rest client. The update by query api is being supported by the rest client version 6.5. Now if we upgrade the rest client to 6.5, we need to upgrade the elasticsearch version in our pom as well. Otherwise they aren't compatible.
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>elasticsearch-rest-high-level-client</artifactId>
<version>${elasticsearch.version}</version>
</dependency>
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
<version>${elasticsearch.version}</version>
</dependency>
So can we upgrade the client and elasticsearch version to 6.5 in our java service and still use the elasticsearch 6.3? I tried it and it works, but just want to be thorough as we don't want our data to be corrupted.
Edit: The Update by query is also available in 6.3 but this api uses the older Transportclient which is supposed to be deprecated soon.
elasticsearch server 6.3
work well withelasticsearch client 6.5
version? Thanks. – Ikrom