在 Elasticsearch.NET 6.x 中,可以使用IElasticClient
以下方法检查索引是否存在:
bool exists = elasticClient.IndexExists("my-index-name").Exists;
在 Elasticsearch.NET 版本 7 中删除了方法。
在 Elasticsearch.NET 6.x 中,可以使用IElasticClient
以下方法检查索引是否存在:
bool exists = elasticClient.IndexExists("my-index-name").Exists;
在 Elasticsearch.NET 版本 7 中删除了方法。