How to delete document types in elasticsearch?

前端 未结 4 526
没有蜡笔的小新
没有蜡笔的小新 2020-12-31 03:43

I create an index \"myindex\" with a specified document type \"mytype\". I am able to delete the index, but it appears that \"mytype\" still exists without being tied to the

4条回答
  •  一整个雨季
    2020-12-31 04:13

    In the latest version of elastic search, they no longer support deleting document types. It's mentioned in the documentation

    It is no longer possible to delete the mapping for a type. Instead you should delete the index and recreate it with the new mappings.

提交回复
热议问题