We are migrating from Solr to ElasticSearch. I using the ElasticSearch High Level Client and ElasticSearch in the 5.6.2 version.
The High Level Client are using Lucene 6.6.1 and my already exists projects are using the 5.3.2. I got a lot of problems in my projects with the new Lucene version, and when I exclude the Lucene dependencies from ElasticSearch client keeping the Lucene 5.3.2, I get the following error:
java.lang.NoSuchFieldError: LUCENE_5_4_1
at org.elasticsearch.Version.<clinit>(Version.java:57)
Can I use the High Level Client with 5.3.2 Lucene version? Or can I remove the Lucene for the High Level Client?
It is not possible to change the version of lucene, or remove it as a dependency. I recommend running your replacement application in a separate jvm if you can.
Unfortunately, I can not do that. Do you have plans to remove this dependencies for the High Level Rest Client? Otherwise, where can I suggest this improve?
I will change my code to use the Low Level Rest Client. My biggest problem for that will be re-implement the BulkProcessor.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.