Spring data elastic 7.4 version

Hi, I update my cluster to 7.4.2 version

But getting an error:

Caused by: java.lang.ClassNotFoundException: org.elasticsearch.action.Action
at java.net.URLClassLoader.findClass (URLClassLoader.java:436)
at java.lang.ClassLoader.loadClass (ClassLoader.java:588)
at java.lang.ClassLoader.loadClass (ClassLoader.java:521)
at com.data.ElasticSearch.ElasticSearchConfiguration.elasticsearchTemplate (ElasticSearchConfiguration.java:74)

This is my code:

Settings settings = Settings.builder()
.put("cluster.name", clusterName).build();
TransportClient client = new PreBuiltTransportClient(settings)
.addTransportAddress(
new TransportAddress(InetAddress.getByName(host), port)
);

    ElasticsearchTemplate elasticsearchTemplate = new ElasticsearchTemplate(client);

Elastic version 7 is released on April. But spring-data still not support elastic 7 version ?

I try to use

org.springframework.data spring-data-elasticsearch 4.0.0.BUILD-SNAPSHOT
	<dependency>
		<groupId>org.elasticsearch.client</groupId>
		<artifactId>elasticsearch-rest-client</artifactId>
		<version>7.4.2</version>
	</dependency>

But getting error:

Caused by: java.lang.ClassNotFoundException: org.springframework.data.elasticsearch.core.ResultsMapper

May be open an issue in spring data Elasticsearch project?

Spring data project not maintained by elastic?

No. It's not.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.