February 2019
Intermediate to advanced
442 pages
11h 46m
English
To update the data, the same syntax is used as an add document. While adding, the ID is not present in the system, if present, the existing data will be updated with the value provided. For example, the following command will update existing students' record having _id equal to five.
With a REST client (Postman), use the following:
{ "name":"Robert", "standard":6, "division":"C", "gender":"M"}
With Kibana, go to the Dev Tools and execute the following query:
PUT students/student/5{ "name":"Robert", "standard":6, "division":"C", "gender":"M"}
Inserting and updating operations use similar syntax and if you try ...
Read now
Unlock full access