SDK
SDK Jvm v1.x
2

exists #

Checks if the given index exists in Kuzzle.

:::: tabs ::: tab Java

Arguments #

Copied to clipboard!
CompletableFuture<Boolean> exists(String index) 
  throws NotConnectedException, InternalException
Argument Type Description
index
String
Index name

Return #

Returns a Boolean that indicates whether the index exists or not.

Usage #

Copied to clipboard!
Boolean result = kuzzle.getIndexController().exists("nyc-open-data").get();

::: ::: tab Kotlin

Arguments #

Copied to clipboard!
fun exists(index: String): CompletableFuture<Boolean>
Argument Type Description
index
String
Index name

Return #

Returns a Boolean that indicates whether the index exists or not.

Usage #

Copied to clipboard!
val result: Boolean = kuzzle.indexController.exists("nyc-open-data").get()

::: ::::