Lucene version issue


(Savva) #1

Hello,

For a test purposes I am trying to insert Elasticsearch client into a project that already contains Lucene
dependencies. To that end I create TransportClient instance, which, if I am not mistaken, should
be independent of Lucene jars; elasticsearch-0.90.7.jar is added to the project.

However, I get the following exception during the run time:

java.lang.NoClassDefFoundError: org/apache/lucene/util/Version
at org.elasticsearch.Version.(Version.java:42)
at org.elasticsearch.client.transport.TransportClient.(TransportClient.java:164)
at org.elasticsearch.client.transport.TransportClient.(TransportClient.java:120)
at com.my6sense.server.managers.searchengine.ElasticSearchEngine.esteblishConnection(ElasticSearchEngine.java:28)
at com.my6sense.server.managers.searchengine.ElasticSearchEngine.(ElasticSearchEngine.java:36)
at com.my6sense.server.managers.managers.MainService.indexingStatistics(MainService.java:55)
...

Do you know what does this exception mean and is there a "clean" way to integrate ES client into a project with Lucene?

Thank you in advance,
Savva


(system) #2