[英]Upgrading from Elasticseatch 2.x to 5.x
將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
這是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>
您很可能在類路徑上同時獲得了兩個ES庫,並且它們正在混合在一起。 檢查有效的POM並進行適當的清理。 也有可能其他ES庫作為一種依賴關系與您的其他依賴關系之一一起出現。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.