行动是治愈恐惧的良药,而犹豫、拖延将不断滋养恐惧。

关于删除type

Elasticsearch | 作者 jutem | 发布于2016年04月20日 | 阅读数:8330

今天试了一下删除type,2.2.0版本是不支持删除type了么?返回结果为
No handler found for uri [/test/testtype/] and method [DELETE]。官网上好像是说2.0以后不支持删除type了,那我一个索引中有多个type,想要删除一个是只能清空其中的数据了么?
已邀请:

helloes

赞同来自: jutem fanyer

https://www.elastic.co/guide/e ... leted   2.x是不支持删除type的了
 
有2种选择:
1、reindex,把需要的mapping数据reindex到新索引;
2、就是你说的,用delete-by-query插件清空数据。

要回复问题请先登录注册