注意:Elasticsearch7 起,Index索引已经不支持创建指定Type(类型), 默认取值为(_doc).
Elasticsearch7 清空指定Index 语法:
POST 请求: http://es 服务器地址/索引名称/_delete_by_query Headers 参数: Content-Type = application/json Body 参数:{ "query": { "match_all": { } } }
Elasticsearch7 清空指定Index 实例: