Skip to content

删除索引

DELETE /user
DELETE /user

删除成功返回

{
  "acknowledged" : true
}
{
  "acknowledged" : true
}

重复删除返回

{
  "error" : {
    "root_cause" : [
      {
        "type" : "index_not_found_exception",
        "reason" : "no such index [user]",
        "resource.type" : "index_or_alias",
        "resource.id" : "user",
        "index_uuid" : "_na_",
        "index" : "user"
      }
    ],
    "type" : "index_not_found_exception",
    "reason" : "no such index [user]",
    "resource.type" : "index_or_alias",
    "resource.id" : "user",
    "index_uuid" : "_na_",
    "index" : "user"
  },
  "status" : 404
}
{
  "error" : {
    "root_cause" : [
      {
        "type" : "index_not_found_exception",
        "reason" : "no such index [user]",
        "resource.type" : "index_or_alias",
        "resource.id" : "user",
        "index_uuid" : "_na_",
        "index" : "user"
      }
    ],
    "type" : "index_not_found_exception",
    "reason" : "no such index [user]",
    "resource.type" : "index_or_alias",
    "resource.id" : "user",
    "index_uuid" : "_na_",
    "index" : "user"
  },
  "status" : 404
}

备案号:冀ICP备20015584号-2