SDK
SDK C# v2.x
2

ExistsAsync #

Checks if the given index exists in Kuzzle.

Arguments #

Task<bool> ExistsAsync(string index);
ArgumentTypeDescription
index
string
Index name

Return #

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

Usage #

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