环境 Elasticsearch版本:7.13.2 实例 判断索引是否存在: 发送一个head请求即可,返回200则索引存在,404则不存在。 curl -i -XHEAD http://localhost:9200/users Elasticsearch.Net+NEST写法: bool isExists = _client.Indices.Exists("users")Exists;