# Elastic Search Compatability

**URL:** <https://discuss.elastic.co/t/elastic-search-compatability/274341>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [May 28, 2021, 12:52pm UTC](https://discuss.elastic.co/t/elastic-search-compatability/274341 "2021-05-28T12:52:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![geek\_007](https://avatars.discourse-cdn.com/v4/letter/g/f17d59/32.png) [@geek\_007](https://discuss.elastic.co/u/geek_007)\
**Post date:** [May 28, 2021, 12:52pm UTC](https://discuss.elastic.co/t/elastic-search-compatability/274341/1 "2021-05-28T12:52:08Z")

</div>

We are running elasticsearch 6.4.0 cluster in our production environment. For a new use case we are planning to roll out a new es cluster with version 7.10.0. Will high level java rest client version 6.8.0 be compatible with both 6.4.0 and 7.10.0

Rest high level java client version 6.7.1 is not compatable with es cluster version 7.10.0  
Rest high level java client version 6.8.1 is not compatable with es cluster version 6.4.0

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 31, 2021, 6:54am UTC](https://discuss.elastic.co/t/elastic-search-compatability/274341/2 "2021-05-31T06:54:28Z")

</div>

Welcome to our community! 😃  
FYI 6.4 reach [EOL](https://www.elastic.co/support/eol) quite some time ago, please upgrade ASAP.

> [@geek\_007](#):
>
> For a new use case we are planning to roll out a new es cluster with version 7.10.0

The latest minor is 7.13, you would be best off moving to that.

> [@geek\_007](#):
>
> Will high level java rest client version 6.8.0 be compatible with both 6.4.0 and 7.10.0

No, it will not be

---

<div class="post-metadata">

**Author:** ![geek\_007](https://avatars.discourse-cdn.com/v4/letter/g/f17d59/32.png) [@geek\_007](https://discuss.elastic.co/u/geek_007)\
**Post date:** [June 9, 2021, 3:13pm UTC](https://discuss.elastic.co/t/elastic-search-compatability/274341/3 "2021-06-09T15:13:28Z")

</div>

@warkolm How can we connect to both ES clusters with a single codebase(with a single high level java rest client version)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 9, 2021, 8:56pm UTC](https://discuss.elastic.co/t/elastic-search-compatability/274341/4 "2021-06-09T20:56:19Z")

</div>

I don't know that client sorry.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 10, 2021, 6:37am UTC](https://discuss.elastic.co/t/elastic-search-compatability/274341/5 "2021-06-10T06:37:51Z")

</div>

> [@geek\_007](#):
>
> How can we connect to both ES clusters with a single codebase(with a single high level java rest client version)

You can't.

I had to solve a similar issue for another project and I came with 2 distributions of the same project, one for 6.x and the other for 7.x.

> <https://github.com/dadoonet/fscrawler/tree/master/elasticsearch-client>
>
> //github.com/dadoonet/fscrawler/tree/master/elasticsearch-client

and

> <https://github.com/dadoonet/fscrawler/tree/master/distribution>
>
> //github.com/dadoonet/fscrawler/tree/master/distribution

If it needs to run within the same JVM, then you can only use the Low Level client and implement yourself what you need to solve your use case.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 8, 2021, 6:38am UTC](https://discuss.elastic.co/t/elastic-search-compatability/274341/6 "2021-07-08T06:38:35Z")

</div>

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