object ElasticClient extends Logging
- Alphabetic
- By Inheritance
- ElasticClient
- Logging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[F[_]](props: ElasticProperties, requestConfigCallback: RequestConfigCallback, httpClientConfigCallback: HttpClientConfigCallback)(implicit arg0: Functor[F], arg1: Executor[F]): ElasticClient
Creates a new ElasticClient using the elasticsearch Java API rest client as the underlying client.
Creates a new ElasticClient using the elasticsearch Java API rest client as the underlying client. Optional callbacks can be passed in to configure the client.
Alternatively, create a RestClient manually and invoke fromRestClient(RestClient).
- def apply[F[_]](props: ElasticProperties)(implicit arg0: Functor[F], arg1: Executor[F]): ElasticClient
Creates a new ElasticClient using the elasticsearch Java API rest client as the underlying client.
Creates a new ElasticClient using the elasticsearch Java API rest client as the underlying client. Optional callbacks can be passed in to configure the client.
Alternatively, create a RestClient manually and invoke fromRestClient(RestClient).
- def apply[F[_]](hc: HttpClient)(implicit arg0: Functor[F], arg1: Executor[F]): ElasticClient
Creates a new ElasticClient by wrapping the given the HttpClient.
Creates a new ElasticClient by wrapping the given the HttpClient.
Any library can be made to work with elastic4s by creating an instance of the HttpClient typeclass wrapping the underlying library and then creating the ElasticClient using this method.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromRestClient[F[_]](client: RestClient)(implicit arg0: Functor[F], arg1: Executor[F]): ElasticClient
Creates a new ElasticClient from an existing Elasticsearch Java API RestClient.
Creates a new ElasticClient from an existing Elasticsearch Java API RestClient.
- client
the Java client to wrap
- returns
newly created Scala client
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val logger: Logger
- Attributes
- protected
- Definition Classes
- Logging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def apply[F[_]](uri: ElasticsearchClientUri, requestConfigCallback: RequestConfigCallback = NoOpRequestConfigCallback, httpClientConfigCallback: HttpClientConfigCallback = NoOpHttpClientConfigCallback)(implicit arg0: Functor[F], arg1: Executor[F]): ElasticClient
Creates a new ElasticClient using the elasticsearch Java API rest client as the underlying client.
Creates a new ElasticClient using the elasticsearch Java API rest client as the underlying client. Optional callbacks can be passed in to configure the client.
Alternatively, create a RestClient manually and invoke fromRestClient(RestClient).
- Annotations
- @deprecated
- Deprecated
(Since version 6.3.3) Use apply(ElasticProperties)