package http
- Alphabetic
- Public
- All
Package Members
- package bulk
- package cat
- package cluster
- package count
- package delete
- package explain
- package get
- package index
- package locks
- package nodes
- package reindex
- package search
- package settings
- package snapshots
- package task
- package termvectors
- package update
- package validate
Type Members
- class DefaultResponseHandler[U] extends ResponseHandler[U]
- abstract class ElasticClient extends Logging
- trait ElasticDsl extends ElasticApi with Logging with BulkHandlers with CatHandlers with CountHandlers with ClusterHandlers with DeleteHandlers with ExistsHandlers with ExplainHandlers with GetHandlers with IndexHandlers with IndexAdminHandlers with IndexAliasHandlers with IndexStatsHandlers with IndexTemplateHandlers with LocksHandlers with MappingHandlers with NodesHandlers with ReindexHandlers with RolloverHandlers with SearchHandlers with SearchTemplateHandlers with SearchScrollHandlers with SettingsHandlers with SnapshotHandlers with UpdateHandlers with TaskHandlers with TermVectorHandlers with ValidateHandlers
- case class ElasticError(type: String, reason: String, indexUuid: Option[String], index: Option[String], shard: Option[String], rootCause: Seq[ElasticError], causedBy: Option[CausedBy]) extends Product with Serializable
- case class ElasticNodeEndpoint(protocol: String, host: String, port: Int, prefix: Option[String]) extends Product with Serializable
Holds all of the variables needed to describe the HTTP endpoint of an elasticsearch node.
Holds all of the variables needed to describe the HTTP endpoint of an elasticsearch node.
- protocol
http or https
- host
the hostname of the node
- port
the port of the server process
- prefix
an optional prefix that will be prepended to all requests
- case class ElasticProperties(endpoints: Seq[ElasticNodeEndpoint], options: Map[String, String] = Map.empty) extends Product with Serializable
Contains the endpoints of the nodes to connect to, as well as connection properties.
- case class ElasticRequest(method: String, endpoint: String, params: Map[String, String], entity: Option[HttpEntity]) extends Product with Serializable
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 com.sksamuel.elastic4s.searches.SearchRequest, etc, are ultimately converted into this class by means of a Handler typeclass instance.
- class ElasticsearchJavaRestClient extends HttpClient
- trait Executor[F[_]] extends AnyRef
- trait Functor[F[_]] extends AnyRef
- abstract class Handler[T, U] extends Logging
A Handler is a typeclass used by the ElasticClient in order to create ElasticRequest instances which are sent to the elasticsearch server, as well as returning a ResponseHandler which handles the response from the server.
A Handler is a typeclass used by the ElasticClient in order to create ElasticRequest instances which are sent to the elasticsearch server, as well as returning a ResponseHandler which handles the response from the server.
- T
the type of the request object handled by this handler
- U
the type of the response object returned by this handler
- trait HttpClient extends Logging
Adapts an underlying http client so that it can be used by the elastic client.
- sealed trait HttpEntity extends AnyRef
- case class HttpResponse(statusCode: Int, entity: Option[StringEntity], headers: Map[String, String]) extends Product with Serializable
- case class JavaClientExceptionWrapper(t: Throwable) extends RuntimeException with Product with Serializable
- class NotFound404ResponseHandler[U] extends DefaultResponseHandler[U]
- case class RequestFailure(status: Int, body: Option[String], headers: Map[String, String], error: ElasticError) extends Response[Nothing] with Product with Serializable
- case class RequestSuccess[U](status: Int, body: Option[String], headers: Map[String, String], result: U) extends Response[U] with Product with Serializable
- sealed trait Response[+U] extends AnyRef
- trait ResponseHandler[U] extends AnyRef
- case class Shards(total: Int, failed: Int, successful: Int) extends Product with Serializable
Value Members
- object ElasticClient extends Logging
- object ElasticDsl extends ElasticDsl
- object ElasticError extends Serializable
- object ElasticProperties extends Serializable
- object ElasticRequest extends Serializable
- object EnumConversions
- object Executor
- object FetchSourceContextBuilderFn
- object FetchSourceContextQueryParameterFn
- object Functor
- object HttpEntity
- object IndicesOptionsParams
- object NoOpHttpClientConfigCallback extends HttpClientConfigCallback
HttpAsyncClientBuilder that performs a no-op on the given HttpAsyncClientBuilder
HttpAsyncClientBuilder that performs a no-op on the given HttpAsyncClientBuilder
Used as a default parameter to the HttpClient when no custom HttpAsync configuration is needed.
- object NoOpRequestConfigCallback extends RequestConfigCallback
RequestConfigCallback that performs a no-op on the given RequestConfig.Builder.
RequestConfigCallback that performs a no-op on the given RequestConfig.Builder.
Used as a default parameter to the HttpClient when no custom request configuration is needed.
- object RefreshPolicyHttpValue
- object ResponseHandler extends Logging
- object ScriptBuilderFn
- object SourceAsContentBuilder