elasticSearch+spring 整合 maven依赖详解

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了elasticSearch+spring 整合 maven依赖详解相关的知识,希望对你有一定的参考价值。

摘自:http://www.mayou18.com/detail/nTxPQSyu.html 【Elasticsearch基础】elasticSearch+spring 整合 maven依赖详解

 

Maven依赖

  <!-- elasticsearch package -->        <dependency>
            <groupId>fr.pilato.spring</groupId>
            <artifactId>spring-elasticsearch</artifactId>
            <version>2.2.0</version>
        </dependency>

        <dependency>
            <groupId>org.elasticsearch</groupId>
            <artifactId>elasticsearch</artifactId>
            <version>2.4.5</version>
        </dependency>

        <dependency>
            <groupId>org.springframework.data</groupId>
            <artifactId>spring-data-elasticsearch</artifactId>
            <version>2.0.4.RELEASE</version>
        </dependency>

        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>druid</artifactId>
            <version>1.0.5</version>
        </dependency>

 

spring-data-elasticsearch 与 Elasticsearch 版本对应表

spring data elasticsearchelasticsearch
2.0.4.RELEASE 2.4.0
2.0.0.RELEASE 2.2.0
1.4.0.M1 1.7.3
1.3.0.RELEASE 1.5.2
1.2.0.RELEASE 1.4.4
1.1.0.RELEASE 1.3.2
1.0.0.RELEASE 1.1.1

spring-elasticsearch,elasticsearch,Spring 版本对应表:

 

spring-elasticsearchelasticsearchSpringRelease date
5.0.0-SNAPSHOT 5.0 - 5.x 4.2.3  
2.2.0 2.0 - 2.4 4.2.3 2017-03-09
2.1.0 2.0, 2.1 4.2.3 2015-11-25
2.0.0 2.0 4.1.4 2015-10-25
1.4.2 < 2.0 4.1.4 2015-03-03
1.4.1 1.4 4.1.4 2015-02-28
1.4.0 1.4 4.1.4 2015-01-03
1.3.0 1.3 4.0.6 2014-09-01
1.0.0 1.0 3.2.2 2014-02-14



以上是关于elasticSearch+spring 整合 maven依赖详解的主要内容,如果未能解决你的问题,请参考以下文章

spring boot 整合Elasticsearch

elasticSearch+spring 整合 maven依赖详解

Spring BootSpring Boot之使用 Spring Data Elasticsearch 整合elasticsearch

SprignBoot整合Spring Data Elasticsearch

Spring Boot整合Elasticsearch

Elasticsearch学习 spring boot整合Elasticsearch的原生方式