Setting up dependencies and configuration classes

Initially, before implementing the domain model, the dependency and configuration class need to be specified. The following Maven starter dependency needs to be included:

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>
</dependencies>

The following configuration properties in the application.properties file need to be set to configure the Elasticsearch cluster nodes:

spring.data.elasticsearch.cluster-nodes=localhost:9300

The preceding configuration uses spring.data.elasticsearch.cluster-nodes to set the Elasticsearch cluster node IP/hostname and port.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.107.229