I\'m using Spring Boot 2.0.3 Release and i have problem while instantiating org.elasticsearch.client.Client
. My code:
Client client = new PreBui
Not all dependencies are satisfied by only adding spring-boot-starter-data-elasticsearch
.
It's necessary to explicitly define all remaining dependencies:
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>transport</artifactId>
<version>${elasticsearch.version}</version>
</dependency>
<dependency>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>transport-netty4-client</artifactId>
<version>${elasticsearch.version}</version>
</dependency>
If you've declared a parent, most likely <version>
tag can be omitted.
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>transport</artifactId>
</dependency>
This is resolved for me.