spring-data-elasticsearch

记录一次Spring支持elasticsearch

Spring官网 https://docs.spring.io/spring-data/elasticsearch/docs/3.1.0.RC2/reference/html/#repositories 

API官网 https://docs.spring.io/spring-data/elasticsearch/docs/3.1.0.RC2/api/

GitHub网址 https://github.com/spring-projects/spring-data-elasticsearch

一个小实例 https://github.com/SpringDataElasticsearchDevs/spring-data-elasticsearch-sample-application

<elasticsearch:transport-client id="client" cluster-name="jachs" cluster-nodes="127.0.0.1:9300"/>修改配置文件中的链接测试数据是否保存

样例中使用的版本为1.2.0,测试ES版本为 elasticsearch1.5.1,elasticsearch-6.2.4版本过高

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

 

posted @ 2018-09-04 17:19  Jachs  阅读(178)  评论(0编辑  收藏  举报