JarJar lucene dependencies? Why?


(Sten Roger Sandvik) #1

Hi.

I am trying to embed both ElasticSearch and Jackrabbit inside one
WebApp. Since ElasticSearch and Jackrabbit uses different lucene
versions we have a problem. I see that ElasticSearch are embedding
almost all depdencies by rewriting package names. But, lucene is not
embedded in this way. Is it a good reason why it is not?

BR,
Sten Roger Sandvik


(Shay Banon) #2

Mainly because when using the TransportClient, there is no need for the
Lucene jars.

On Mon, Apr 30, 2012 at 3:51 PM, Sten Roger Sandvik stenrs@gmail.comwrote:

Hi.

I am trying to embed both ElasticSearch and Jackrabbit inside one
WebApp. Since ElasticSearch and Jackrabbit uses different lucene
versions we have a problem. I see that ElasticSearch are embedding
almost all depdencies by rewriting package names. But, lucene is not
embedded in this way. Is it a good reason why it is not?

BR,
Sten Roger Sandvik


(Sten Roger Sandvik) #3

Thanks. But when I remove the jar dependencies of lucene jars, I get a
CLF exception. It seems that some lucene classes are not bundled when
starting a local node (with storage). In NodeEnvironment there are
dependencies to both org.apache.lucene.store.Lock and
org.apache.lucene.store.NativeFSLockFactory. Is this on purpose?

BR,
Sten Roger

On 1 Mai, 16:57, Shay Banon kim...@gmail.com wrote:

Mainly because when using the TransportClient, there is no need for the
Lucene jars.

On Mon, Apr 30, 2012 at 3:51 PM, Sten Roger Sandvik ste...@gmail.comwrote:

Hi.

I am trying to embed both ElasticSearch and Jackrabbit inside one
WebApp. Since ElasticSearch and Jackrabbit uses different lucene
versions we have a problem. I see that ElasticSearch are embedding
almost all depdencies by rewriting package names. But, lucene is not
embedded in this way. Is it a good reason why it is not?

BR,
Sten Roger Sandvik


(Shay Banon) #4

Maybe its because you started a NodeClient and not a TransportClient?
NodeClient requires Lucene jars.

On Tue, May 8, 2012 at 11:59 AM, Sten Roger Sandvik stenrs@gmail.comwrote:

Thanks. But when I remove the jar dependencies of lucene jars, I get a
CLF exception. It seems that some lucene classes are not bundled when
starting a local node (with storage). In NodeEnvironment there are
dependencies to both org.apache.lucene.store.Lock and
org.apache.lucene.store.NativeFSLockFactory. Is this on purpose?

BR,
Sten Roger

On 1 Mai, 16:57, Shay Banon kim...@gmail.com wrote:

Mainly because when using the TransportClient, there is no need for the
Lucene jars.

On Mon, Apr 30, 2012 at 3:51 PM, Sten Roger Sandvik <ste...@gmail.com
wrote:

Hi.

I am trying to embed both ElasticSearch and Jackrabbit inside one
WebApp. Since ElasticSearch and Jackrabbit uses different lucene
versions we have a problem. I see that ElasticSearch are embedding
almost all depdencies by rewriting package names. But, lucene is not
embedded in this way. Is it a good reason why it is not?

BR,
Sten Roger Sandvik


(system) #5