删除API,可以根据特定的ID删除文档。

$ curl -XDELETE 'http://localhost:9200/website/blog/AVbkih8AltSLRRB7XAun'

会返回下面的消息:

{
  • "found"true,
  • "_index""website",
  • "_type""blog",
  • "_id""AVbkih8AltSLRRB7XAun",
  • "_version"4,
  • "_shards": {
    • "total"2,
    • "successful"1,
    • "failed"0
    }
}

相关文章:

  • 2021-09-12
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2022-02-18
  • 2022-02-27
  • 2022-02-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2021-05-22
相关资源
相似解决方案