doc-notation obviously does not work with nested objects, but you can directly access _source-object, as Horst Seirer pointed out.
, _source , ; ctx -variable .
scripted_fields params._source. (, )
_source, get -notation, . , , params._source.nestedProperty[0].property .
, . , - :
def returnval=[];
for (nested in params._source.nestedProperty) {
returnval.add(nested['property']*params.multiplier)
}
return returnval;
, .
, , , , , .