/spring-elastic-search

An example of using Elasticsearch using SpringBoot and Spring Data

Primary LanguageJava

Getting started

1. Install elasticsearch

You can get latest version of Elasticsearch here.

Follow the document to install Elasticsearch then you can run it on your own hardware.

2.Prepare data:

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.

3.Setup project:

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