June 2017
Beginner to intermediate
404 pages
8h 22m
English
We already indexed the document with the unique identifier 1, and now we need to update the category of the product from just books to technical books. We can update the document as shown here:
POST http://localhost:9200/chapter1/product/1/_update { "doc": { "category": "technical books" } }
The body of the request is the field of the document we want to update and the unique identifier is passed in the URL.
The response from Elasticsearch is shown here:
{ "_index": "chapter1", "_type": "product", "_id": "1", "_version": 3, "_shards": { "total": 1, "successful": 1, "failed": 0 } }
As you can see in the response, the operation is successful, and the version ...
Read now
Unlock full access