com.sksamuel.elastic4s

Members list

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.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
trait ResponseHandler[U]
class Object
trait Matchable
class Any
Known subtypes
Self type
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.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
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

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object AddAliasActionHandler.type
object GetAliasHandler.type
object IndexAliasesHandler.type
object BulkHandler.type
object CatAliasesHandler.type
object CatAllocationHandler.type
object CatCountHandler.type
object CatHealthHandler.type
object CatIndexesHandler.type
object CatMasterHandler.type
object CatNodesHandler.type
object CatPluginsHandler.type
object CatSegmentsHandler.type
object CatShardsHandler.type
object CatThreadPoolHandler.type
object ClusterHealthHandler.type
object ClusterStateHandler.type
object ClusterStatsHandler.type
object NodeHotThreadsHandler.type
object NodeUsageHandler.type
object CountHandler.type
object CountHandler.type
object DeleteByIdHandler.type
object DeleteByQueryHandler.type
object ExistsHandler.type
object ExplainHandler.type
object GetHandler.type
object MultiGetHandler.type
object GetMappingHandler.type
object PutMappingHandler.type
object AliasExistsHandler.type
object ClearCacheHandler.type
object CloseIndexHandler.type
object CreateIndexHandler.type
object DeleteIndexHandler.type
object FlushIndexHandler.type
object ForceMergeHandler.type
object GetSegmentHandler.type
object IndexExistsHandler.type
object IndexRecoveryHandler.type
object OpenIndexHandler.type
object RefreshIndexHandler.type
object ShrinkIndexHandler.type
object SplitIndexHandler.type
object TypeExistsHandler.type
object AnalyzeRequestHandler.type
object GetIndexHandler.type
object IndexHandler.type
object IndicesStatsHandler.type
object RolloverHandler.type
object NodeInfoHandler.type
object NodeStatsHandler.type
object ReindexHandler.type
object DeleteRoleHandler.type
object GetRoleHandler.type
object ChangePasswordHandler.type
object DeleteUserHandler.type
object DisableUserHandler.type
object EnableUserHandler.type
object GetUserHandler.type
object GetSettingsHandler.type
object UpdateSettingsHandler.type
object CreateSnapshotHandler.type
object DeleteSnapshotHandler.type
object GetSnapshotHandler.type
object CancelTaskHandler.type
object GetTaskHandler.type
object ListTaskHandler.type
object TermVectorHandler.type
class UpdateByQueryHandler[Q, R]
object UpdateHandler.type
object ValidateHandler.type
Show all
object HttpEntity

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
HttpEntity.type
sealed trait HttpEntity

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
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.

Attributes

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

Attributes

Supertypes
trait ResponseHandler[U]
class Object
trait Matchable
class Any
trait ResponseHandler[U]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type