Hi,
Java doc for ElasticsearchClient v. 7.17.8 ElasticsearchClient (java-client 7.17.8 API) states that ElasticsearchClient is java class.
However using
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>elasticsearch-rest-client</artifactId>
<version>7.17.8</version>
</dependency>
In the jar elasticsearch-7.17.8.jar I see, that it is only interface (see below).
In the jar elasticsearch-rest-client-7.17.8.jar, this class/interface does not exists in any form.
What makes of course problems in using it, due to trivial compiler errors.
They state that I can not use it as it is documented e.g. on the page: Migrating from the High Level Rest Client
Question: what is wrong?
Thanks in advance for help and regards,
Seweryn.
package org.elasticsearch.client;
import org.elasticsearch.action.ActionFuture;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.ActionRequest;
import org.elasticsearch.action.ActionResponse;
import org.elasticsearch.action.ActionType;
import org.elasticsearch.threadpool.ThreadPool;
public interface ElasticsearchClient {
<Request extends ActionRequest, Response extends ActionResponse> ActionFuture<Response> execute(ActionType<Response> var1, Request var2);
<Request extends ActionRequest, Response extends ActionResponse> void execute(ActionType<Response> var1, Request var2, ActionListener<Response> var3);
ThreadPool threadPool();
}