Example how to use spring-data-jest to connect to elasticsearch version > 5
spring-data-jest is spring Data implementation for ElasticSearch based on Jest Rest client
You should start elasticsearch instance on the same server where this app is running.
It was tested with elasticsearch5.6.2