ElasticSearch刪除索引的命令
當(dāng)前命令操作是在Kibana中操作
刪除單個(gè)索引
DELETE
索引名稱
DELETE test
刪除多個(gè)索引
DELETE
索引名稱1,索引名稱2
DELETE test1,test2
刪除全部索引
DELETE /_all
DELETE /*
刪除索引的中的全部數(shù)據(jù)
POST test/_delete_by_query
{
"query": {
"match_all": {}
}
}
注意文章來源:http://www.zghlxwxcb.cn/news/detail-852173.html
Elasticsearch查詢刪除的時(shí)候,不是立即刪除。在執(zhí)行刪除操作時(shí),Elasticsearch會(huì)先將要?jiǎng)h除的文檔標(biāo)記為已刪除,然后在后臺(tái)進(jìn)行清理和提交操作。這個(gè)過程是異步的,不會(huì)立即生效。文章來源地址http://www.zghlxwxcb.cn/news/detail-852173.html
到了這里,關(guān)于ElasticSearch刪除索引的命令的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!