SDK
SDK Java v3.x
2

This SDK is deprecated. We recommend to use the Kuzzle SDK-JVM.
A migration guide is available here

exists #

Checks if the given index exists in Kuzzle.

Arguments #

Copied to clipboard!
CompletableFuture<Boolean> exists(final 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();