SDK
SDK C# v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

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");
}