我在连接到elasticsearch集群时获得以下堆栈跟踪。我已添加了所有必需的罐子,但异常未解决。
java.lang.NoSuchFieldError: LUCENE_4_0_0
at org.elasticsearch.Version.<clinit>(Version.java:44) at org.elasticsearch.client.transport.TransportClient$Builder.build(TransportClient.java:129) at com.lntinfotech.automation.controller.TestSearch2.main(TestSearch2.java:32)
答案 0 :(得分:0)
你应该检查两件事:
<dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId> <version>2.3.0</version> </dependency>