SDK
SDK Jvm v1.x
2

exists #

Checks if the given index exists in Kuzzle.

:::: tabs ::: tab Java

Arguments #

CompletableFuture<Boolean> exists(String index) 
  throws NotConnectedException, InternalException
ArgumentTypeDescription
index
String
Index name

Return #

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

Usage #

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

::: ::: tab Kotlin

Arguments #

fun exists(index: String): CompletableFuture<Boolean>
ArgumentTypeDescription
index
String
Index name

Return #

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

Usage #

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

::: ::::