class ElasticSearchClient extends AnyRef
- Alphabetic
- By Inheritance
- ElasticSearchClient
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ElasticSearchClient(url: String, username: Option[String] = None, password: Option[String] = None)
Type Members
- sealed trait Action extends AnyRef
- case class ActionsRequest(actions: Seq[Action]) extends Product with Serializable
- case class AddAction(add: Map[String, String]) extends Action with Product with Serializable
- case class RemoveAction(remove: Map[String, String]) extends Action with Product with Serializable
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
checkNodeRoles: Boolean
Check roles/http endpoint
Check roles/http endpoint
- returns
true if running false if not running or if status code not 200
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
createIndex(indexName: String): HttpResponse
Create an index
Create an index
- indexName
name of the index to create
- returns
the http response sent by ElasticSearch
-
def
deleteIndex(indexName: String): HttpResponse
Delete an index
Delete an index
- indexName
name of the index to delete
- returns
the http response sent by ElasticSearch
-
def
deleteTemplate(templateName: String): HttpResponse
Delete a template
Delete a template
- templateName
name of the template to delete
- returns
the http response sent by ElasticSearch
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getIndex(indexName: String): HttpResponse
Get an index
Get an index
- indexName
name of the index to fetch
- returns
the http response sent by ElasticSearch
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def http: CloseableHttpClient
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isRunning: Boolean
Sends a GET on the url and verify the status code of the response is 200
Sends a GET on the url and verify the status code of the response is 200
- returns
true if running false if not running or if status code not 200
- val log: Logger
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
setAlias(add: List[String], remove: List[String], alias: String): HttpResponse
Set alias
Set alias
- returns
the http response sent by ElasticSearch
-
def
setTemplate(templatePath: String)(implicit spark: SparkSession): HttpResponse
Set a template to ElasticSearch
Set a template to ElasticSearch
- templatePath
path of the template.json that is expected to be in the resource folder or spark
- returns
the http response sent by ElasticSearch
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated