# Single Jar for java API

**URL:** <https://discuss.elastic.co/t/single-jar-for-java-api/5499>\
**Category:** Elasticsearch\
**Created:** [October 3, 2011, 6:00am UTC](https://discuss.elastic.co/t/single-jar-for-java-api/5499 "2011-10-03T06:00:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [October 3, 2011, 6:00am UTC](https://discuss.elastic.co/t/single-jar-for-java-api/5499/1 "2011-10-03T06:00:37Z")

</div>

Hi ,

I need my application to index some documents on Elastic Search.  
I understand that i can do this perfectly by using a HTTP client API tp run  
some GET calls on ES.

But then i am looking for a ES java client JAR which is able to do this. I  
stumbled upon this link -  
[http://www.elasticsearch.org/guide/reference/java-api/](http://www.elasticsearch.org/guide/reference/java-api/)

But then its asking me to include a heavy ES jar with lucene and all , which  
is nearly impossible to accommodate.

Is there a single JAR for Java API alone which i can possibly fetch from a  
maven repo ??

Thanks  
Vineeth

---

<div class="post-metadata">

**Author:** ![Gautam\_S](https://avatars.discourse-cdn.com/v4/letter/g/ebca7d/32.png) [@Gautam\_S](https://discuss.elastic.co/u/Gautam_S)\
**Post date:** [October 3, 2011, 6:21am UTC](https://discuss.elastic.co/t/single-jar-for-java-api/5499/2 "2011-10-03T06:21:27Z")

</div>

You can use elasticsearch-0.17.7.jar which is under lib.

On Mon, Oct 3, 2011 at 11:30 AM, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com)wrote:

> Hi ,
> 
> I need my application to index some documents on Elastic Search.  
> I understand that i can do this perfectly by using a HTTP client API tp run  
> some GET calls on ES.
> 
> But then i am looking for a ES java client JAR which is able to do this. I  
> stumbled upon this link -  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/)
> 
> But then its asking me to include a heavy ES jar with lucene and all ,  
> which is nearly impossible to accommodate.
> 
> Is there a single JAR for Java API alone which i can possibly fetch from a  
> maven repo ??
> 
> Thanks  
> Vineeth

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [October 3, 2011, 6:53am UTC](https://discuss.elastic.co/t/single-jar-for-java-api/5499/3 "2011-10-03T06:53:28Z")

</div>

That jar itself is 11 MB and it brings in lots of things like Lucene.  
At the end when i create a assembly , i get a big jar which i don't need.

Is there any other way out ?

On Mon, Oct 3, 2011 at 11:51 AM, Gautam S [gautam@datarpm.com](mailto:gautam@datarpm.com) wrote:

> You can use elasticsearch-0.17.7.jar which is under lib.
> 
> On Mon, Oct 3, 2011 at 11:30 AM, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com)wrote:
> 
> > Hi ,
> > 
> > I need my application to index some documents on Elastic Search.  
> > I understand that i can do this perfectly by using a HTTP client API tp  
> > run some GET calls on ES.
> > 
> > But then i am looking for a ES java client JAR which is able to do this. I  
> > stumbled upon this link -  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/)
> > 
> > But then its asking me to include a heavy ES jar with lucene and all ,  
> > which is nearly impossible to accommodate.
> > 
> > Is there a single JAR for Java API alone which i can possibly fetch from a  
> > maven repo ??
> > 
> > Thanks  
> > Vineeth

---

<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:** [October 3, 2011, 7:08am UTC](https://discuss.elastic.co/t/single-jar-for-java-api/5499/4 "2011-10-03T07:08:10Z")

</div>

No there isn't.

David 😉

Le 3 oct. 2011 à 08:53, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a écrit :

> That jar itself is 11 MB and it brings in lots of things like Lucene.  
> At the end when i create a assembly , i get a big jar which i don't need.
> 
> Is there any other way out ?
> 
> On Mon, Oct 3, 2011 at 11:51 AM, Gautam S [gautam@datarpm.com](mailto:gautam@datarpm.com) wrote:  
> You can use elasticsearch-0.17.7.jar which is under lib.
> 
> On Mon, Oct 3, 2011 at 11:30 AM, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) wrote:  
> Hi ,
> 
> I need my application to index some documents on Elastic Search.  
> I understand that i can do this perfectly by using a HTTP client API tp run some GET calls on ES.
> 
> But then i am looking for a ES java client JAR which is able to do this. I stumbled upon this link - [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/)
> 
> But then its asking me to include a heavy ES jar with lucene and all , which is nearly impossible to accommodate.
> 
> Is there a single JAR for Java API alone which i can possibly fetch from a maven repo ??
> 
> Thanks  
> Vineeth

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [October 3, 2011, 8:46am UTC](https://discuss.elastic.co/t/single-jar-for-java-api/5499/5 "2011-10-03T08:46:09Z")

</div>

I feel it should be present.....  
What is your opinion ?

Thanks  
Vineeth

On Mon, Oct 3, 2011 at 12:38 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> No there isn't.
> 
> David 😉
> 
> Le 3 oct. 2011 à 08:53, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a  
> écrit :
> 
> That jar itself is 11 MB and it brings in lots of things like Lucene.  
> At the end when i create a assembly , i get a big jar which i don't need.
> 
> Is there any other way out ?
> 
> On Mon, Oct 3, 2011 at 11:51 AM, Gautam S \< [gautam@datarpm.com](mailto:gautam@datarpm.com)  
> [gautam@datarpm.com](mailto:gautam@datarpm.com)\> wrote:
> 
> > You can use elasticsearch-0.17.7.jar which is under lib.
> > 
> > On Mon, Oct 3, 2011 at 11:30 AM, Vineeth Mohan \<[vineethmohan@algotree.com](mailto:vineethmohan@algotree.com)  
> > [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com)\> wrote:
> > 
> > > Hi ,
> > > 
> > > I need my application to index some documents on Elastic Search.  
> > > I understand that i can do this perfectly by using a HTTP client API tp  
> > > run some GET calls on ES.
> > > 
> > > But then i am looking for a ES java client JAR which is able to do this.  
> > > I stumbled upon this link -  
> > > [http://www.elasticsearch.org/guide/reference/java-api/](http://www.elasticsearch.org/guide/reference/java-api/)  
> > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/)
> > > 
> > > But then its asking me to include a heavy ES jar with lucene and all ,  
> > > which is nearly impossible to accommodate.
> > > 
> > > Is there a single JAR for Java API alone which i can possibly fetch from  
> > > a maven repo ??
> > > 
> > > Thanks  
> > > Vineeth

---

<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, 3:53am UTC](https://discuss.elastic.co/t/single-jar-for-java-api/5499/6 "2017-07-06T03:53:02Z")

</div>


