es官网:https://www.elastic.co/cn/downloads/elasticsearch
历史版本:https://www.elastic.co/cn/downloads/past-releases
下载完成后:启动服务
集成的es本版要跟项目中spring版本相对应:
添加依赖:
<!--spring-data-boot-es-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>
<!--spring-data-elasticsearch>-->