Rest API search engine with Spring Boot and Spring Data Elasticsearch
4 min readJan 26, 2023
In this story, we’ll see how to use Spring Boot with Spring Data Elasticsearch.
· Prerequisites
· Overview
∘ What is Elasticsearch?
∘ Why Elasticsearch?
∘ Elasticsearch Setup with Docker
· Getting Started
∘ Configuring Elasticsearch in Spring Boot
∘ Elasticsearch Object Mapping
∘ Elasticsearch Repositories
∘ Service Layer
∘ Book Controller
· Testing
· Conclusion
· References
Prerequisites
This is the list of all the prerequisites:
- Spring Boot 3.0.2
- Maven 3.8.+
- Java 17
- Postman / insomnia or any other API testing tool.
- Docker installed
Overview
What is Elasticsearch?
Elasticsearch is a distributed, free and open search and analytics engine for all types of data, including textual, numerical, geospatial…