# Java rest api with eclipse

**URL:** <https://discuss.elastic.co/t/java-rest-api-with-eclipse/60868>\
**Category:** Elasticsearch\
**Created:** [September 19, 2016, 10:58am UTC](https://discuss.elastic.co/t/java-rest-api-with-eclipse/60868 "2016-09-19T10:58:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maniut](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@maniut](https://discuss.elastic.co/u/maniut)\
**Post date:** [September 19, 2016, 10:58am UTC](https://discuss.elastic.co/t/java-rest-api-with-eclipse/60868/1 "2016-09-19T10:58:28Z")

</div>

I am new to elastic search ,i don't find the way that how can i use java rest api with eclipse.Should i have to download it first.From where can i download this api.

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [September 19, 2016, 11:11am UTC](https://discuss.elastic.co/t/java-rest-api-with-eclipse/60868/2 "2016-09-19T11:11:53Z")

</div>

That depends on the version of ES you are using.

Before 5.0 the Java client would not go through REST. For more documentation see here: [https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/client.html](https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/client.html)

After 5.0 there will be a Java REST client. See [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) for more information.

For more general information on which client to pick see also [https://www.elastic.co/blog/found-interfacing-elasticsearch-picking-client](https://www.elastic.co/blog/found-interfacing-elasticsearch-picking-client) - old-ish and maybe out of date but with a bigger focus on Java: [https://www.elastic.co/blog/found-java-clients-for-elasticsearch](https://www.elastic.co/blog/found-java-clients-for-elasticsearch)

Hope this helps,  
Isabel

---

<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 5, 2017, 10:19pm UTC](https://discuss.elastic.co/t/java-rest-api-with-eclipse/60868/3 "2017-07-05T22:19:18Z")

</div>


