SDK
SDK C# v2.x
2

ExistsAsync #

Checks if the given index exists in Kuzzle.

Arguments #

Copied to clipboard!
Task<bool> ExistsAsync(string index);
Argument Type Description
index
string
Index name

Return #

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

Usage #

Copied to clipboard!
if (await kuzzle.Index.ExistsAsync("nyc-open-data")) {
  Console.WriteLine("index exists");
} else {
  Console.WriteLine("index does not exist");
}