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 #

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