Elasticsearch入门 互动版

DELETE Mapping


  我们前面已经讲了建立mapping,我们这一节来讲解如何删除mapping

  删除索引为twitter,索引类型为tweet的mapping。

curl -XDELETE 'http://localhost:9200/twitter/tweet'
或者
curl -XDELETE 'http://localhost:9200/twitter/tweet/_mapping'
或者
curl -XDELETE 'http://localhost:9200/twitter/_mapping/tweet'
删除索引为department的索引,类型为epmlpyees的mapping。