# Java Client

**URL:** <https://discuss.elastic.co/t/java-client/3058>\
**Category:** Elasticsearch\
**Created:** [July 1, 2010, 1:36am UTC](https://discuss.elastic.co/t/java-client/3058 "2010-07-01T01:36:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dustin\_Whitney](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@Dustin\_Whitney](https://discuss.elastic.co/u/Dustin_Whitney)\
**Post date:** [July 1, 2010, 1:36am UTC](https://discuss.elastic.co/t/java-client/3058/1 "2010-07-01T01:36:03Z")

</div>

Where do I download the java client? The maven repo mentioned in the  
documentation doesn't seem to have it.

Dustin

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [July 1, 2010, 7:18am UTC](https://discuss.elastic.co/t/java-client/3058/2 "2010-07-01T07:18:29Z")

</div>

Its part of the elasticsearch jar, its actually being used heavily within  
elasticsearch within its REST module.

-shay.banon

On Thu, Jul 1, 2010 at 4:36 AM, Dustin Whitney [dustin.whitney@gmail.com](mailto:dustin.whitney@gmail.com)wrote:

> Where do I download the java client? The maven repo mentioned in the  
> documentation doesn't seem to have it.
> 
> Dustin

---

<div class="post-metadata">

**Author:** ![Dustin\_Whitney](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@Dustin\_Whitney](https://discuss.elastic.co/u/Dustin_Whitney)\
**Post date:** [July 1, 2010, 2:29pm UTC](https://discuss.elastic.co/t/java-client/3058/3 "2010-07-01T14:29:01Z")

</div>

I guess the documentation is out of date? I can't get this to compile:

[http://www.elasticsearch.com/docs/elasticsearch/java\_api/index/#Source\_Parameter](http://www.elasticsearch.com/docs/elasticsearch/java_api/index/#Source_Parameter)

and I don't see anything called  
org.elasticsearch.util.xcontent.XContentBuilder in the source tree on  
github.

Dustin

On Thu, Jul 1, 2010 at 3:18 AM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:

> Its part of the elasticsearch jar, its actually being used heavily within  
> elasticsearch within its REST module.
> 
> -shay.banon
> 
> On Thu, Jul 1, 2010 at 4:36 AM, Dustin Whitney [dustin.whitney@gmail.com](mailto:dustin.whitney@gmail.com)wrote:
> 
> > Where do I download the java client? The maven repo mentioned in the  
> > documentation doesn't seem to have it.
> > 
> > Dustin

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [July 2, 2010, 1:59pm UTC](https://discuss.elastic.co/t/java-client/3058/4 "2010-07-02T13:59:49Z")

</div>

Yea, in 0.9 there has been refactoring for this. If you use master, then use  
the new Java API, the prepareXXX methods (they are much simpler).

-shay.banon

On Thu, Jul 1, 2010 at 5:29 PM, Dustin Whitney [dustin.whitney@gmail.com](mailto:dustin.whitney@gmail.com)wrote:

> I guess the documentation is out of date? I can't get this to compile:
> 
> [http://www.elasticsearch.com/docs/elasticsearch/java\_api/index/#Source\_Parameter](http://www.elasticsearch.com/docs/elasticsearch/java_api/index/#Source_Parameter)
> 
> and I don't see anything called  
> org.elasticsearch.util.xcontent.XContentBuilder in the source tree on  
> github.
> 
> Dustin
> 
> On Thu, Jul 1, 2010 at 3:18 AM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:
> 
> > Its part of the elasticsearch jar, its actually being used heavily within  
> > elasticsearch within its REST module.
> > 
> > -shay.banon
> > 
> > On Thu, Jul 1, 2010 at 4:36 AM, Dustin Whitney [dustin.whitney@gmail.com](mailto:dustin.whitney@gmail.com)wrote:
> > 
> > > Where do I download the java client? The maven repo mentioned in the  
> > > documentation doesn't seem to have it.
> > > 
> > > Dustin

---

<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 6, 2017, 4:22am UTC](https://discuss.elastic.co/t/java-client/3058/5 "2017-07-06T04:22:45Z")

</div>

Closed on July 6, 2017, 4:22am UTC


