IndexExists - olivere/elastic GitHub Wiki
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.
}