Reputation: 21
I use C# How to check an index already exists in Elasticseach.net In the document of Elastic.co bản 1.x I see the method "TypeExists" that version 6 doesn't support
Upvotes: 2
Views: 8398
Reputation: 125538
With 6.x client, it's
var client = new ElasticClient();
if (client.IndexExists("index_name").Exists)
{
// index exists, do something
}
Upvotes: 1