# List of Lucene jar dependencies of Java API

**URL:** <https://discuss.elastic.co/t/list-of-lucene-jar-dependencies-of-java-api/12408>\
**Category:** Elasticsearch\
**Created:** [June 13, 2013, 9:26pm UTC](https://discuss.elastic.co/t/list-of-lucene-jar-dependencies-of-java-api/12408 "2013-06-13T21:26:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Bellora](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_bellora/32/74372_2.png) [@Paul\_Bellora](https://discuss.elastic.co/u/Paul_Bellora)\
**Post date:** [June 13, 2013, 9:26pm UTC](https://discuss.elastic.co/t/list-of-lucene-jar-dependencies-of-java-api/12408/1 "2013-06-13T21:26:54Z")

</div>

I'm in the process of integrating with ES and I'm installing the Java  
client jar (0.90.0). I'm not using maven. As I've read elsewhere (and  
learned via runtime errors), the Java client depends on various Lucene  
jars. Where can I find the up-to-date list of these jar dependencies?

One of the posts on this topic[https://groups.google.com/forum/?fromgroups#!searchin/elasticsearch/java$20api$20lucene/elasticsearch/isDdx0f7XMU/WlX6GBa7DMUJ](https://groups.google.com/forum/?fromgroups#!searchin/elasticsearch/java%2420api%2420lucene/elasticsearch/isDdx0f7XMU/WlX6GBa7DMUJ)lists the required jars, but it's over a year old so I wanted to find the  
canonical source for this information.

Thanks,  
Paul

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [June 13, 2013, 9:32pm UTC](https://discuss.elastic.co/t/list-of-lucene-jar-dependencies-of-java-api/12408/2 "2013-06-13T21:32:44Z")

</div>

The maven pom is the best place to look:  
[https://github.com/elasticsearch/elasticsearch/blob/master/pom.xml#L44](https://github.com/elasticsearch/elasticsearch/blob/master/pom.xml#L44)

Using the elasticsearch client should not require any Lucene jars. If you  
are developing something for elasticsearch, I would use maven.

Cheers,

Ivan

On Thu, Jun 13, 2013 at 2:26 PM, Paul Bellora [bellorap@gmail.com](mailto:bellorap@gmail.com) wrote:

> I'm in the process of integrating with ES and I'm installing the Java  
> client jar (0.90.0). I'm not using maven. As I've read elsewhere (and  
> learned via runtime errors), the Java client depends on various Lucene  
> jars. Where can I find the up-to-date list of these jar dependencies?
> 
> One of the posts on this topic[https://groups.google.com/forum/?fromgroups#!searchin/elasticsearch/java$20api$20lucene/elasticsearch/isDdx0f7XMU/WlX6GBa7DMUJ](https://groups.google.com/forum/?fromgroups#!searchin/elasticsearch/java$20api$20lucene/elasticsearch/isDdx0f7XMU/WlX6GBa7DMUJ)lists the required jars, but it's over a year old so I wanted to find the  
> canonical source for this information.
> 
> Thanks,  
> Paul
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Paul\_Bellora](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_bellora/32/74372_2.png) [@Paul\_Bellora](https://discuss.elastic.co/u/Paul_Bellora)\
**Post date:** [June 13, 2013, 9:59pm UTC](https://discuss.elastic.co/t/list-of-lucene-jar-dependencies-of-java-api/12408/3 "2013-06-13T21:59:15Z")

</div>

Ah, that might have been a sillier question than I realized. Thanks for  
pointing me there!

I'm not sure I understand what you mean when you say that the client  
shouldn't require and Lucene jars - I've seen that stated several times  
before in other discussions actually. But the fact of the matter is that  
when I execute a query using explain and don't have  
lucene-analyzers-common-4.3.0.jar on the classpath I get a  
NoClassDefFoundError for  
org.apache.lucene.analysis.standard.StandardAnalyzer - that seems pretty  
clear cut to me. Is there something I'm missing about how the client should  
be set up?

On Thursday, June 13, 2013 5:32:44 PM UTC-4, Ivan Brusic wrote:

> The maven pom is the best place to look:  
> [https://github.com/elasticsearch/elasticsearch/blob/master/pom.xml#L44](https://github.com/elasticsearch/elasticsearch/blob/master/pom.xml#L44)
> 
> Using the elasticsearch client should not require any Lucene jars. If you  
> are developing something for elasticsearch, I would use maven.
> 
> Cheers,
> 
> Ivan
> 
> On Thu, Jun 13, 2013 at 2:26 PM, Paul Bellora \<[bell...@gmail.com](mailto:bell...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > I'm in the process of integrating with ES and I'm installing the Java  
> > client jar (0.90.0). I'm not using maven. As I've read elsewhere (and  
> > learned via runtime errors), the Java client depends on various Lucene  
> > jars. Where can I find the up-to-date list of these jar dependencies?
> > 
> > One of the posts on this topic[https://groups.google.com/forum/?fromgroups#!searchin/elasticsearch/java$20api$20lucene/elasticsearch/isDdx0f7XMU/WlX6GBa7DMUJ](https://groups.google.com/forum/?fromgroups#!searchin/elasticsearch/java$20api$20lucene/elasticsearch/isDdx0f7XMU/WlX6GBa7DMUJ)lists the required jars, but it's over a year old so I wanted to find the  
> > canonical source for this information.
> > 
> > Thanks,  
> > Paul
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [June 13, 2013, 11:38pm UTC](https://discuss.elastic.co/t/list-of-lucene-jar-dependencies-of-java-api/12408/4 "2013-06-13T23:38:48Z")

</div>

I did not read the link you provided, but after having done so now, I can  
see how it would break when using explain (or even highlighting). I guess  
the elasticsearch team never provided a fix.

StandardAnalyzer can be found in the lucene-analyzers-common jar. Looking  
at its pom.xml shows that it only depends on lucene-core. Hopefully you  
will only need these two jars.

--  
Ivan

On Thu, Jun 13, 2013 at 2:59 PM, Paul Bellora [bellorap@gmail.com](mailto:bellorap@gmail.com) wrote:

> Ah, that might have been a sillier question than I realized. Thanks for  
> pointing me there!
> 
> I'm not sure I understand what you mean when you say that the client  
> shouldn't require and Lucene jars - I've seen that stated several times  
> before in other discussions actually. But the fact of the matter is that  
> when I execute a query using explain and don't have  
> lucene-analyzers-common-4.3.0.jar on the classpath I get a  
> NoClassDefFoundError for  
> org.apache.lucene.analysis.standard.StandardAnalyzer - that seems pretty  
> clear cut to me. Is there something I'm missing about how the client should  
> be set up?
> 
> On Thursday, June 13, 2013 5:32:44 PM UTC-4, Ivan Brusic wrote:
> 
> > The maven pom is the best place to look: [https://github.com/](https://github.com/)\*\*  
> > elasticsearch/elasticsearch/\*\*blob/master/pom.xml#L44[https://github.com/elasticsearch/elasticsearch/blob/master/pom.xml#L44](https://github.com/elasticsearch/elasticsearch/blob/master/pom.xml#L44)
> > 
> > Using the elasticsearch client should not require any Lucene jars. If you  
> > are developing something for elasticsearch, I would use maven.
> > 
> > Cheers,
> > 
> > Ivan
> > 
> > On Thu, Jun 13, 2013 at 2:26 PM, Paul Bellora [bell...@gmail.com](mailto:bell...@gmail.com) wrote:
> > 
> > > I'm in the process of integrating with ES and I'm installing the Java  
> > > client jar (0.90.0). I'm not using maven. As I've read elsewhere (and  
> > > learned via runtime errors), the Java client depends on various Lucene  
> > > jars. Where can I find the up-to-date list of these jar dependencies?
> > > 
> > > One of the posts on this topic[https://groups.google.com/forum/?fromgroups#!searchin/elasticsearch/java$20api$20lucene/elasticsearch/isDdx0f7XMU/WlX6GBa7DMUJ](https://groups.google.com/forum/?fromgroups#!searchin/elasticsearch/java$20api$20lucene/elasticsearch/isDdx0f7XMU/WlX6GBa7DMUJ)lists the required jars, but it's over a year old so I wanted to find the  
> > > canonical source for this information.
> > > 
> > > Thanks,  
> > > Paul
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to elasticsearc...@\*\*[googlegroups.com](http://googlegroups.com).
> > > 
> > > For more options, visit [https://groups.google.com/\*\*groups/opt\_out](https://groups.google.com/**groups/opt_out)[https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out)  
> > > .
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Fatima\_Castiglione\_M](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fatima_castiglione_m/32/2252_2.png) [@Fatima\_Castiglione\_M](https://discuss.elastic.co/u/Fatima_Castiglione_M)\
**Post date:** [June 14, 2013, 5:06am UTC](https://discuss.elastic.co/t/list-of-lucene-jar-dependencies-of-java-api/12408/5 "2013-06-14T05:06:10Z")

</div>

After installing Elasticsearch, I got all the Lucene .jars at:

/usr/share/elasticsearch/lib/

no need to install them manually.

2013/6/13 Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com)

> I did not read the link you provided, but after having done so now, I can  
> see how it would break when using explain (or even highlighting). I guess  
> the elasticsearch team never provided a fix.
> 
> StandardAnalyzer can be found in the lucene-analyzers-common jar. Looking  
> at its pom.xml shows that it only depends on lucene-core. Hopefully you  
> will only need these two jars.
> 
> --  
> Ivan
> 
> On Thu, Jun 13, 2013 at 2:59 PM, Paul Bellora [bellorap@gmail.com](mailto:bellorap@gmail.com) wrote:
> 
> > Ah, that might have been a sillier question than I realized. Thanks for  
> > pointing me there!
> > 
> > I'm not sure I understand what you mean when you say that the client  
> > shouldn't require and Lucene jars - I've seen that stated several times  
> > before in other discussions actually. But the fact of the matter is that  
> > when I execute a query using explain and don't have  
> > lucene-analyzers-common-4.3.0.jar on the classpath I get a  
> > NoClassDefFoundError for  
> > org.apache.lucene.analysis.standard.StandardAnalyzer - that seems pretty  
> > clear cut to me. Is there something I'm missing about how the client should  
> > be set up?
> > 
> > On Thursday, June 13, 2013 5:32:44 PM UTC-4, Ivan Brusic wrote:
> > 
> > > The maven pom is the best place to look: [https://github.com/](https://github.com/)\*\*  
> > > elasticsearch/elasticsearch/\*\*blob/master/pom.xml#L44[https://github.com/elasticsearch/elasticsearch/blob/master/pom.xml#L44](https://github.com/elasticsearch/elasticsearch/blob/master/pom.xml#L44)
> > > 
> > > Using the elasticsearch client should not require any Lucene jars. If  
> > > you are developing something for elasticsearch, I would use maven.
> > > 
> > > Cheers,
> > > 
> > > Ivan
> > > 
> > > On Thu, Jun 13, 2013 at 2:26 PM, Paul Bellora [bell...@gmail.com](mailto:bell...@gmail.com) wrote:
> > > 
> > > > I'm in the process of integrating with ES and I'm installing the Java  
> > > > client jar (0.90.0). I'm not using maven. As I've read elsewhere (and  
> > > > learned via runtime errors), the Java client depends on various Lucene  
> > > > jars. Where can I find the up-to-date list of these jar dependencies?
> > > > 
> > > > One of the posts on this topic[https://groups.google.com/forum/?fromgroups#!searchin/elasticsearch/java$20api$20lucene/elasticsearch/isDdx0f7XMU/WlX6GBa7DMUJ](https://groups.google.com/forum/?fromgroups#!searchin/elasticsearch/java$20api$20lucene/elasticsearch/isDdx0f7XMU/WlX6GBa7DMUJ)lists the required jars, but it's over a year old so I wanted to find the  
> > > > canonical source for this information.
> > > > 
> > > > Thanks,  
> > > > Paul
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to elasticsearc...@\*\*[googlegroups.com](http://googlegroups.com).
> > > > 
> > > > For more options, visit [https://groups.google.com/\*\*groups/opt\_out](https://groups.google.com/**groups/opt_out)[https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out)  
> > > > .
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups  
> > > "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an  
> > > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

# --

Fátima Castiglione Maldonado  
[castiglionemaldonado@gmail.com](mailto:castiglionemaldonado@gmail.com)

```
                 ____
               ,'_ |

```

**_|||  
\< ) .------.  
 `-----------,------.-' ,-' `-.  
| | | ,' `. ,' | | ,' `.  
| ,-' |_ /   
 _,'-' `. `---._|**\_\_\_\_\_\_\_\_\_   
.--' -----. | \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ `-. ----- | | ___| | | \ ,- \ | |___ | |===========================((|) | | | | | | _____________________ / `- / |  
`--._ -----' | _________________ ,-' ----- | `.-.\_ ,' \_\_.---' | /  
| `-. | \ / `. | | `. ,' | | | `. ,'  
\_\_\_\_\_,----------`-------`-. `-._ _,-' < ___________________________ ) `------'  
| _| |  
`._\_\_\_|

=================================

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![pellyadolfo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pellyadolfo/32/1879_2.png) [@pellyadolfo](https://discuss.elastic.co/u/pellyadolfo)\
**Post date:** [December 3, 2013, 5:57pm UTC](https://discuss.elastic.co/t/list-of-lucene-jar-dependencies-of-java-api/12408/6 "2013-12-03T17:57:26Z")

</div>

> > > > > > > > Using the elasticsearch client should not require any Lucene jars.

This makes sense as the requirement for a Java API would be just create and  
process on return REST JSON requests. But 3 questions here when accessing  
ES from another Java software.

- I am wondering if would not be cleaner having a separated jar file  
exclusive for the Java Client API (rather than importing the whole core jar  
file) in the client, so this code will not need to be mixed with the core  
ES. At the end, Java API is just a (small) client more....

- Where in code (  
[https://github.com/pellyadolfo/elasticsearch/tree/master/src/main/java/org/elasticsearch](https://github.com/pellyadolfo/elasticsearch/tree/master/src/main/java/org/elasticsearch))  
is located the Java API?

- By providing an instance of import \*org.elasticsearch.client.Client \*to  
the invoker Java application would be enough for the client application to  
access all features provided by the Java API? Does an instance of  
_org.elasticsearch.client.Client_ provide all what is required (via  
setters/getters/other methods)?

Thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1eb29b70-50ba-4110-be6c-ae90de28d977%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1eb29b70-50ba-4110-be6c-ae90de28d977%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:03am UTC](https://discuss.elastic.co/t/list-of-lucene-jar-dependencies-of-java-api/12408/7 "2017-07-06T02:03:33Z")

</div>


