# Java client for ElasticSearch

**URL:** <https://discuss.elastic.co/t/java-client-for-elasticsearch/111994>\
**Category:** Elasticsearch\
**Created:** [December 15, 2017, 1:51pm UTC](https://discuss.elastic.co/t/java-client-for-elasticsearch/111994 "2017-12-15T13:51:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![addy](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@addy](https://discuss.elastic.co/u/addy)\
**Post date:** [December 15, 2017, 1:51pm UTC](https://discuss.elastic.co/t/java-client-for-elasticsearch/111994/1 "2017-12-15T13:51:42Z")

</div>

We are querying elasticsearch from our Java application thru Transport client.  
Recently we had to upgrade transport client from ver. 5.4.1 to ver. 6.0.0 since we updated ES on our nodes and had to make quite a few changes in our application code.  
Also read somewhere on elastic forum that Transport client will be slowly deprecated and discontinued in future ElasticSearch versions. Would like to confirm if this is true.

If so, can someone please guide us to a better solution to query elasticsearch from our java code.  
The solution should be fast in performance and should be future proof in the sense that if we upgrade ES, we should not be required to make changes in our Java code.

Thanks.

---

<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:** [December 15, 2017, 2:12pm UTC](https://discuss.elastic.co/t/java-client-for-elasticsearch/111994/2 "2017-12-15T14:12:35Z")

</div>

Here we go: [https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/index.html](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/index.html)

---

<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:** [January 12, 2018, 2:12pm UTC](https://discuss.elastic.co/t/java-client-for-elasticsearch/111994/3 "2018-01-12T14:12:43Z")

</div>

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