Skip to content
Oliver Eilhard edited this page Feb 26, 2015 · 3 revisions

The IndexExists service checks if an index exists.

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