You can get latest version of Elasticsearch here.
Follow the document to install Elasticsearch then you can run it on your own hardware.
I'm using Elasticsearch 6.8.4
then I get the sample data from here.
Follow the tutorial from reference document, I added document from shakespeare.json
to my local Elasticsearch.
In this example, we use:
SpringBoot 2.2.5 RELEASE
Spring Data Elasticsearch starter pack
Elasticsearch 6.8.4
Elasticsearch Client 6.8.4
Java 8
You can find the most compatible version here