com.sksamuel.elastic4s

Type members

Classlikes

trait BodyBuilder[R]

A typeclass that is used to build the json bodies for requests.

A typeclass that is used to build the json bodies for requests.

They accept a request instance, such as CountRequest or SearchRequest and return a JsonValue which models the json to be used.

case class ElasticRequest(method: String, endpoint: String, params: Map[String, String], entity: Option[HttpEntity], headers: Map[String, String])

An ElasticRequest models all the required fields for a request to be sent to Elasticsearch.

An ElasticRequest models all the required fields for a request to be sent to Elasticsearch.

Request types such as SearchRequest, etc, are ultimately converted into this class by means of a Handler typeclass instance.

Companion:
object
Companion:
class
abstract class Handler[T, U]

A Handler is a typeclass used to create ElasticRequest instances from elastic4s models, which are the sent to the elasticsearch server, as well as returning a ResponseHandler which handles the response from the server.

A Handler is a typeclass used to create ElasticRequest instances from elastic4s models, which are the sent to the elasticsearch server, as well as returning a ResponseHandler which handles the response from the server.

Type parameters:
T

the type of the request object handled by this handler

U

the type of the response object returned by this handler

object HttpEntity
Companion:
class
sealed trait HttpEntity
Companion:
object
case class HttpResponse(statusCode: Int, entity: Option[StringEntity], headers: Map[String, String])

The response passed to the callabck of a HttpClient.

The response passed to the callabck of a HttpClient.

Companion:
object
Companion:
class