# About Maven setting of JavaHighRevelClient when updating Elasticsearch

**URL:** <https://discuss.elastic.co/t/about-maven-setting-of-javahighrevelclient-when-updating-elasticsearch/168932>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [February 19, 2019, 5:29am UTC](https://discuss.elastic.co/t/about-maven-setting-of-javahighrevelclient-when-updating-elasticsearch/168932 "2019-02-19T05:29:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![taku333](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/taku333/32/40375_2.png) [@taku333](https://discuss.elastic.co/u/taku333)\
**Post date:** [February 19, 2019, 5:29am UTC](https://discuss.elastic.co/t/about-maven-setting-of-javahighrevelclient-when-updating-elasticsearch/168932/1 "2019-02-19T05:29:59Z")

</div>

Elasticsearchを更新した時に、アプリケーションで使用しているJavaHighRevelClientのMaven設定は①~③どのタイミングで更新したら問題がないでしょうか？

①メジャーアップデート時に更新（5.y.z → 6.y.z）  
②マイナーアップデート時に更新（6.5.z → 6.6.z）  
③メンテナンスリリース時に更新（6.6.0 → 6.6.1）

[https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-getting-started-maven.html](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-getting-started-maven.html)

---

<div class="post-metadata">

**Author:** ![tsgkdt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsgkdt/32/39151_2.png) [@tsgkdt](https://discuss.elastic.co/u/tsgkdt)\
**Post date:** [February 19, 2019, 5:56am UTC](https://discuss.elastic.co/t/about-maven-setting-of-javahighrevelclient-when-updating-elasticsearch/168932/2 "2019-02-19T05:56:28Z")

</div>

いつ、JavaHighLevelClientのバージョンをあげれば良いか、というご質問だとしますと・・・

> **[Compatibility | Java REST Client \[7.17\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-compatibility.html)**

こちらの記述によりますと↓

> The 6.0 client is able to communicate with any 6.x Elasticsearch node, while the 6.1 client is for sure able to communicate with 6.1, 6.2 and any later 6.x version

> It is recommended to upgrade the High Level Client when upgrading the Elasticsearch cluster to a new major version

- 6.0のクライアントは、6.xの間で使える
- Elasticsearchのメジャーバージョンアップ時には、クライアントもバージョンアップを推奨する

と書いてあるように思いますので、①の５系から６系にあがるときには、少なくともクライアントのバージョンもあげた方が良いように思いました。

そこで、6.y.z ( yは5より小さいものとする )のクライアントとなっていれば、②や③ではクライアントバージョンはそのままでも可、と考えれば良いのではないでしょうか。

---

<div class="post-metadata">

**Author:** ![taku333](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/taku333/32/40375_2.png) [@taku333](https://discuss.elastic.co/u/taku333)\
**Post date:** [February 19, 2019, 8:34am UTC](https://discuss.elastic.co/t/about-maven-setting-of-javahighrevelclient-when-updating-elasticsearch/168932/3 "2019-02-19T08:34:30Z")

</div>

@ tsgkdt  
ありがとう！ この情報が知りたかったです！！

---

<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:** [March 19, 2019, 8:34am UTC](https://discuss.elastic.co/t/about-maven-setting-of-javahighrevelclient-when-updating-elasticsearch/168932/4 "2019-03-19T08:34:30Z")

</div>

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