Elasticsearch delete documents

chapter


Delete the document is fairly simple.

This example shows how to remove the client ID is 2:

API

DELETE /customer/_doc/2?pretty

CURL

curl -X DELETE "localhost:9200/customer/_doc/2?pretty"

Refer to delete by query API to delete all of the documents that match a particular query. Note that deleting the entire index than delete By Query API to delete all documents much faster.

Guess you like

Origin www.cnblogs.com/jinbuqi/p/11489643.html