Spring Data's goal is to significantly reduce the boilerplate codes that are used to implement the data access layer. The Spring Data repository takes the domain class to manage its life cycle and provides basic functionalities such as CRUD, paging, and sorting. In order to use Spring Boot and Spring Data Elasticsearch, a new Spring Boot starter dependency is required to be added to pom.xml, as shown in the following code block:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>
At the time of writing, the latest version of Spring Boot Starter Data Elasticsearch is 2.1.4, which supports Spring Data Elasticsearch 3.1.6 for Elasticsearch version 6.5.2. Interested users will need to wait for the new version to be released...