Use this API to update the DocValue fields from a collection of 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/docs/values"
Where the payload file (my_payload) contains the documents to update (only DocValues):
{
"documents":
[
{
"$id$": "1",
"stock": 14
},
{
"$id$": "2",
"stock": 13
}
],
"commit_user_data": {
"my_key" : "my_value"
}
}