Hi, i read the docs about update API using scripting, but it seems that i can only execute a doc update or script, but how do i update one property using script and the rest of the document assigning values, within the same request?
I tried this without success:
{
"script" : "ctx._source.processed += count",
"params" : {
"count" : 15
},
"upsert": {
"processed": 0,
"attr1": 1,
"attr2": 2
}
}