Painless - How to return "missing value"?

Please, is there a way to return "missing value" from Painless script (in Field context)?
I'm trying to create a scripted field that has value only if a condition holds for another field in the document. Thanks.

I guess, I figured it myself. One can return empty array return [];. This seems to be interpreted as a "missing value".

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