ES 0.90.0.RC2
I recently upgraded to ES 0.90.0.RC2 from 0.20.6, and I noticed that my
JAVA client doesn't compile anymore. I used to only have
elasticsearch-0.20.6.jar in my project classpath, and I replaced it with
elasticsearch-0.90.0.rc2.jar. The offending class is *
org.apache.lucene.util.BytesRef*, but this is used at quite a number of
places. I found out from the source that this class is packaged in
lucene-core-4.2.1.jar, grabbed that class (and some more like
BytesRefComparator, UnicodeUtil after subsequent runtime errors),
unpackaged elasticsearch-0.90.0.rc2.jar, and copied the class in the
appropriate places. This gets rid of the compilation and runtime errors,
however, performing a JAR surgery like this makes me a bit uncomfortable.
I was under the impression that elasticsearch-0.90.0.rc2.jar is all you
need while creating a client for ES. So shouldn't it run standalone without
depending on any other libraries in the lib/ directory? Am I missing
something? Here is the error I see in Eclipse:
XContentBuilder o = XContentFactory.jsonBuilder().startObject();
o.field("line", "this is a test line"); // Error: "Type
org.apache.lucene.util.ByteRef cannot be resolved. It is indirectly
referenced from required .class files"
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.