Partial update using script and updating other properties

(John Diaz) #1

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

(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.