ElasticClient

com.sksamuel.elastic4s.ElasticClient
case class ElasticClient(client: HttpClient) extends AutoCloseable

An ElasticClient is used to execute HTTP requests against an ElasticSearch cluster. This class delegates the actual HTTP calls to an instance of HttpClient.

Any third party HTTP client library can be made to work with elastic4s by creating an instance of the HttpClient typeclass wrapping the underlying client library and then creating the ElasticClient with it.

Value parameters

client

the HTTP client library to use

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait AutoCloseable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def close(): Unit
def execute[T, U, F[_]](t: T)(implicit executor: Executor[F], functor: Functor[F], handler: Handler[T, U], javaTypeable: JavaTypeable[U], options: CommonRequestOptions): F[Response[U]]
def show[T](t: T)(implicit handler: Handler[T, _]): String

Returns a String containing the request details. The string will have the HTTP method, endpoint, params and if applicable the request body.

Returns a String containing the request details. The string will have the HTTP method, endpoint, params and if applicable the request body.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product