In this project, I tried to run ElasticSearch as the primary database.
To run the application do the following commands:
1-) Install the docker.
2-) Run the "elasticsearch.yaml" file under the docker directory.
3-) Run the spring boot application.
4-) You can reach the endpoint by swagger from: "localhost:8080/swagger-ui.html"
I added a sample query to filter by date according to sample User & Order entities.
I also enabled the Virtual thread. This project runs Java 22.
There are some basic crud operations with rest.
To create custom queries => https://docs.spring.io/spring-data/elasticsearch/reference/elasticsearch/repositories/elasticsearch-repository-queries.html