com.sksamuel.elastic4s
Type members
Classlikes
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.
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
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
The response passed to the callabck of a HttpClient.
The response passed to the callabck of a HttpClient.