ExistsAsync #
Checks if the given index exists in Kuzzle.
Arguments #
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 #
if (await kuzzle.Index.ExistsAsync("nyc-open-data")) {
Console.WriteLine("index exists");
} else {
Console.WriteLine("index does not exist");
}
Edit this page on Github(opens new window)