renaming read client

This commit is contained in:
Jörg Prante 2020-05-20 18:35:02 +02:00
parent 3cc4881f19
commit 10833f023b
3 changed files with 8 additions and 7 deletions

View file

@ -1,6 +0,0 @@
package org.xbib.elx.api;
public interface ReadClientProvider<C extends ReadClient> {
C getReadClient();
}

View file

@ -0,0 +1,7 @@
package org.xbib.elx.api;
@FunctionalInterface
public interface SeachClientProvider<C extends SearchClient> {
C getClient();
}

View file

@ -9,7 +9,7 @@ import org.elasticsearch.action.get.MultiGetResponse;
import org.elasticsearch.action.search.SearchRequest; import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.action.search.SearchResponse; import org.elasticsearch.action.search.SearchResponse;
public interface ReadClient { public interface SearchClient {
ActionFuture<GetResponse> get(GetRequest getRequest); ActionFuture<GetResponse> get(GetRequest getRequest);