REST APIs —— Document APIs —— Delete API
Removes a JSON document from the specified index.
从指定的索引中移除 JSON 文档。
1、Request(请求)
https://www.elastic.co/guide/en/elasticsearch/reference/8.8/docs-delete.html#docs-delete-api-request
DELETE /< index>/_doc/<_id> DELETE /< index>/_doc/<_id>
2、Prerequisites(先决条件)
https://www.elastic.co/guide/en/elasticsearch/reference/8.8/docs-delete.html#docs-delete-api-prereqs
If the Elasticsearch security features are enabled, you must have the delete or write index privilege for the target index or index alias.
如果启用了 Elasticsearch 安全特性,则必须拥有目标索引或索引别名的删除或写入索引特权。
3、Description(描述)
https://www.elastic.co/guide/en/elasticsearch/reference/8.8/docs-delete.html#docs-delete-api-desc
You use DELETE to remove a document from an index. You must specify the index name and document ID.
使用 DELETE 从索引中删除文档。必须指定索引名称和文档 ID。
标签:index,APIs,docs,精讲,REST,索引,Elasticsearch,delete From: https://www.cnblogs.com/zuoyang/p/17452205.html