exists #
Checks if the given index exists in Kuzzle.
:::: tabs ::: tab Java
Arguments #
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 #
Boolean result = kuzzle.getIndexController().exists("nyc-open-data").get();::: ::: tab Kotlin
Arguments #
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 #
val result: Boolean = kuzzle.indexController.exists("nyc-open-data").get()::: ::::