https://grokonez.com/spring-framework/spring-data/start-springboot-elasticsearch-using-spring-data

How to start SpringBoot ElasticSearch using Spring Data

Elasticsearch is a distributed, full-text search engine based on Lucene with JSON schema. In the tutorial, JavaSampleApproach will show you how to start SpringBoot ElasticSearch by sample code.

Related posts:

I. Technologies

– Java 1.8 – Maven 3.3.9 – Spring Tool Suite – Version 3.8.1.RELEASE – Spring Boot: 1.5.1.RELEASE - ElasticSearch: 2.4.0

II. Practice

Step to do - Create SpringBoot project - Create a mapping model - Create an ElasticSearch repository - Create a test client - Run & check result

1. Create SpringBoot project

- Using SpringToolSuite, create a SpringBoot project. Then add elasticsearch dependency:
<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>

2. Create a mapping model

Using annotation: @Document(indexName = "javasampleapproach", type = "customer")

More at:

https://grokonez.com/spring-framework/spring-data/start-springboot-elasticsearch-using-spring-data

How to start SpringBoot ElasticSearch using Spring Data

#springdata #springboot #elasticsearch

How to start SpringBoot ElasticSearch using Spring Data » grokonez
1.15 GEEK