ElasticSearch client without lucene dependencies


(Paul Nibin) #1

I want to use ElasticSearch transport client. But when I add the maven dependency for elasticsearch,

	<dependency>
		<groupId>org.elasticsearch</groupId>
		<artifactId>elasticsearch</artifactId>
		<version>1.5.1</version>
	</dependency>

It is getting 17 jars(around 19 MBs).

antlr-runtime-3.5.jar
asm-4.1.jar
asm-commons-4.1.jar
elasticsearch-1.5.1.jar
lucene-analyzers-common-4.10.4.jar
lucene-core-4.10.4.jar
lucene-grouping-4.10.4.jar
lucene-highlighter-4.10.4.jar
lucene-join-4.10.4.jar
lucene-memory-4.10.4.jar
lucene-misc-4.10.4.jar
lucene-queries-4.10.4.jar
lucene-queryparser-4.10.4.jar
lucene-sandbox-4.10.4.jar
lucene-spatial-4.10.4.jar
lucene-suggest-4.10.4.jar
spatial4j-0.4.1.jar

Do I need all these jars to use Transport Client?

What would be the maven/gradle dependecy to get only the required jars. I suppose, I won't need lucene jars, if I am using Transport Client.

Thank,
Paul


(David Pilato) #2

Yes you need them for now.
I would not try to remove anything.


(Paul Nibin) #3

Now many new versions of ElasticSearch are released.

Is this some thing possible to do now? Are there any plans to make TransportClient independent of Lucene dependencies?


(system) #4