Skip to content
Tim Butler edited this page Jan 4, 2017 · 3 revisions

The IndexExists service checks if an index exists.

// Check if the index called "twitter" exists
exists, err := client.IndexExists("twitter").Do(context.Background())
if err != nil {
    // Handle error
}
if !exists {
    // Index does not exist yet.
}