![](/img/trans.png)
[英]How can I specify index / field analyzers using NEST fluent mapping for ElasticSearch 5.x?
[英]How can I delete a collection or index on ElasticSearch?
如何在ElasticSearch上刪除集合或索引? 我正在使用.NET,Elastic服務器位於localhost上。
您可以通過以下API請求刪除索引
curl -X DELETE "http://HOST:9200/{index_name}"
你可以使用NEST
使用“ ElasticClient”
ElasticClient Client = new ElasticClient(connestionString);
IDeleteIndexResponse result = Client.DeleteIndex(IndexName);
if(result.IsValid)
{
//do some work
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.