Interface ElasticsearchBackend

All Superinterfaces:
Backend

public interface ElasticsearchBackend extends Backend
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    client(Class<T> clientClass)
    Retrieve the underlying, low-level client used to communicate with the Elasticsearch cluster.

    Methods inherited from interface org.hibernate.search.engine.backend.Backend

    name, unwrap
  • Method Details

    • client

      <T> T client(Class<T> clientClass)
      Retrieve the underlying, low-level client used to communicate with the Elasticsearch cluster.

      WARNING - Unsupported API: the underlying client class may change without notice.

      Type Parameters:
      T - The expected client type
      Parameters:
      clientClass - The Class representing the expected client type
      Returns:
      The client.
      Throws:
      SearchException - if the underlying client does not implement the given class.