How to determine a field type using painless

(Daniellienert) #1


I am running Elasticsearch 5.6.8.

In my script in an UPDATE, I assume a field being a HasMap, but I got an error like:

Caused by: java.lang.IllegalArgumentException: Unable to find dynamic method [containsKey] with [1] arguments for class [java.util.ArrayList].

Is it possible to determine the type of a ctx._source.* field with painless, so I can react accordingly?

Thanks in advance,

(system) #2

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