Elastic Search Lucene version error

前端 未结 2 2051
一个人的身影
一个人的身影 2020-12-06 08:11

I have a very simple ES Client which will send a query to local ES server(1.4.1 version of ES) and get the results and display to the user. Now, I took this code to a differ

相关标签:
2条回答
  • 2020-12-06 08:40

    It seems that you are trying to use Elasticsearch and Lucene in your project as separate libraries.

    Elastissearch 1.4.1 is based on Lucene 4.10.2. You can check the release blog page here for more details.

    To solve your problem you will need to update your Lucene library version to 4.10 and use Version.LUCENE_CURRENT instead of LUCENE_3_6.

    You can find here Lucene 4.10 Core API documentation.

    I hope that this will help. Don't hesitate to comment if you have doubts.

    0 讨论(0)
  • 2020-12-06 08:57

    Same error can occur in another case also - if someone unpack new ElasticSearch version in the same directory as previous version. Then it ends up with two versions of the jars in 'ElasticSearch/lib' directory. The error appears on startup.

    In this case, the fix is to make clean ElasticSearch installation, without leftovers.

    0 讨论(0)
提交回复
热议问题