How can I get all key-value pairs for the object with Painless?

So, I can get access to object values this way:

doc['field.KEY'].value

But how can I get all key-value pairs for the object? Like field.entrySet() ?

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