https://discuss.elastic.co has many questions about the Elasticsearch Java Client.
To address those questions, I often attempt to reproduce the issues.
This repository houses many examples derived from those discussions. I believe it could be beneficial for many, so I've made the code available here.
You're welcome to contribute your own examples if you'd like.
This repository is tested against Elasticsearch 8.12.1.
You can start Elasticsearch locally using docker-compose
:
docker-compose up
If a local cluster is not running at https://localhost:9200
, we will start automatically a Docker image using
the Elasticsearch module for TestContainers.
It requires to have Docker running.