【问题标题】:Upgrading from Elasticseatch 2.x to 5.x从 Elasticsearch 2.x 升级到 5.x
【发布时间】:2017-08-19 21:13:30
【问题描述】:

将 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的一些sn-p代码

<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>

【问题讨论】:

    标签: java spring maven elasticsearch spring-boot


    【解决方案1】:

    很可能您在类路径中同时获得了两个 ES 库,并且它们混合在一起。检查有效的 POM 并进行适当的清理。也有可能不同的 ES lib 与您的其他依赖项之一作为依赖项。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-30
      • 2018-07-08
      • 1970-01-01
      • 2014-06-02
      • 2010-10-09
      相关资源
      最近更新 更多