Use this API to update the DocValue fields of a document.
Parameters:
The field $id$ must be provided to identify the document which will be updated.
curl -XPOST -H 'Content-Type: application/json' -d @my_payload \
"http://localhost:9091/indexes/my_index/doc/values"
Where the payload file (my_payload) contains the fields to update (only DocValues):
{
"document":
{
"$id$": "5",
"stock": 10
},
"commit_user_data": {
"my_key" : "my_value"
}
}