Updating documents¶
Updating an existing field¶
POST /products/_update/100
{
"doc": {
"in_stock": 3
}
}
Adding a new field¶
Yes, the syntax is the same as the above. ;-)
POST /products/_update/100
{
"doc": {
"tags": ["electronics"]
}
}