December 2017
Intermediate to advanced
434 pages
10h 29m
English
The Delete API lets you delete a document by ID:
DELETE /catalog/product/AVrASKqgaBGmnAMj1SBe
The response of the delete operations is as follows:
{ "found": true, "_index": "catalog", "_type": "product", "_id": "AVrASKqgaBGmnAMj1SBe", "_version": 4, "result": "deleted", "_shards": { "total": 2, "successful": 1, "failed": 0 }}
This is how basic CRUD operations are performed with Elasticsearch. Please bear in mind that Elasticsearch maintains data in a completely different data structure, that is, an inverted index, using the capabilities of Apache Lucene. A relational database builds and maintains B-trees, which are more suitable for typical CRUD operations.
Read now
Unlock full access