Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.1.0-beta2 dependencies, Datomic compatibility #23

Closed
terjesb opened this issue Mar 24, 2013 · 3 comments
Closed

1.1.0-beta2 dependencies, Datomic compatibility #23

terjesb opened this issue Mar 24, 2013 · 3 comments

Comments

@terjesb
Copy link

terjesb commented Mar 24, 2013

I have a project that works fine using elastisch 1.0.2 and datomic-free 0.8.3848 against an elasticsearch 0.90.0.RC1 server (since 0.20.x and 0.90.0.Beta).

Datomic currently seems to depend on Lucene 3.x API, and specifically includes lucene-core 3.3.0.

lein classpath only shows lucene-core 3.3.0, no other lucene or elasticsearch jars.

I tried switching to elastisch 1.1.0-beta2 to see if is was compatible. It pulls down ES 0.90.0.Beta1 and Lucene 4.1. Now Datomic is having problems and the project won't start. Also, lein classpath shows lots of lucene jars and the full elasticsearch jar.

Is this just beta related, or will the native client in elastisch depend on all these jars?
Will there be a method to avoid pulling in lucene/elasticsearch jars at all and maintain Datomic compatibility until they upgrade to 4.x?

@michaelklishin
Copy link
Member

If you don't need the native client, exclude it from Elastisch's dependencies using the :exclusions option. ElasticSearch uses Lucene
version they need/want, and it's up to Datomic to catch up and/or support the version ES uses.

@terjesb
Copy link
Author

terjesb commented Mar 24, 2013

Thanks!

[clojurewerkz/elastisch "1.1.0-beta2" :exclusions [org.elasticsearch/elasticsearch]]

does indeed work.

(But for those who need/want the native client, one can hope that ES will package it in a separate, smaller jar to avoid pulling in full ES and the Lucene dependencies.)

@jonpither
Copy link
Contributor

We've got this problem and we're using Elastisch's native client :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants