[英]Upgrading from Elasticseatch 2.x to 5.x
Having upgrade Elasticsearch 2.x to 5.x , I got the following message in eclipse: 将Elasticsearch 2.x升级到5.x后,我在eclipse中收到以下消息:
The type org.elasticsearch.search.suggest.SuggestBuilder$SuggestionBuilder cannot be resolved. It is indirectly referenced from required .class files
and here is some snippet code from pom.xml
这是pom.xml
一些代码片段
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.6.RELEASE</version>
</parent>
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>transport</artifactId>
<version>5.5.1</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-elasticsearch</artifactId>
</dependency>
Most likely you got both ES libraries on the classpath and they are mixing together. 您很可能在类路径上同时获得了两个ES库,并且它们正在混合在一起。 Check the effective POM and do a proper cleanup. 检查有效的POM并进行适当的清理。 It is also possible that different ES lib is comming as a dependency with one of your other dependencies. 也有可能其他ES库作为一种依赖关系与您的其他依赖关系之一一起出现。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.