org.hibernate.search.backend.elasticsearch.ElasticsearchBackend Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-backend-elasticsearch Show documentation
Show all versions of hibernate-search-backend-elasticsearch Show documentation
Hibernate Search Backend relying on remote Elasticsearch clusters
The newest version!
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.backend.elasticsearch;
import org.hibernate.search.engine.backend.Backend;
import org.hibernate.search.util.common.SearchException;
public interface ElasticsearchBackend extends Backend {
/**
* Retrieve the underlying, low-level client used to communicate with the Elasticsearch cluster.
*
* WARNING - Unsupported API: the underlying client class may change without notice.
*
* @param clientClass The {@link Class} representing the expected client type
* @param The expected client type
* @return The client.
* @throws SearchException if the underlying client does not implement the given class.
*/
T client(Class clientClass);
}