设置参数 `node.name` 可以自定义 Elasticsearch 节点的名字。 此条 Tips 由 medcl 贡献。

如何删除一个type下所有数据

Elasticsearch | 作者 testwang | 发布于2015年07月12日 | 阅读数:11803

想删除一个type下的所有文档可以直接删除type
已邀请:

testwang - 技术宅

赞同来自:

es.indices.delete_mapping(index="test-index",doc_type="tweet")

medcl - 今晚打老虎。

赞同来自:

RESTful方式 curl -XDELETE http://locahost:9200/test-index/tweet

要回复问题请先登录注册