The Java client needs Lucene libraries


(Nicolas Lalevée) #1

I use the java client the following way:
nodeBuilder().client(true).clusterName(clusterName).node().client();

If I don't have lucene-core, lucene-hightlighter and lucene-queries, it blows off with some ClassNotFoundException. Does these jars are really needed ? If so, why ? I don't understand why some Lucene process should be executed on the client part.
After a very quick look to the code, it seems that InternalNode is requiring to be injected to much module for the case of a client. Should I open a ticket ?

Nicolas


(Shay Banon) #2

A client node can potentially not require lucene jar files, though it has
not been tested without those libs. In general, a client node is simply a
node that won't have concrete indices created on it, but still forms part of
the cluster. The TransportClient does not require Lucene jar files, as its
different.

2011/8/13 Nicolas Lalevée nicolas.lalevee@hibnet.org

I use the java client the following way:
nodeBuilder().client(true).clusterName(clusterName).node().client();

If I don't have lucene-core, lucene-hightlighter and lucene-queries, it
blows off with some ClassNotFoundException. Does these jars are really
needed ? If so, why ? I don't understand why some Lucene process should be
executed on the client part.
After a very quick look to the code, it seems that InternalNode is
requiring to be injected to much module for the case of a client. Should I
open a ticket ?

Nicolas


(system) #3