ElasticSearch painless determine that field was array in source document

Elasticsearch contains document like { “array”:[“1″,”2”], “str”: “123” } With mapping “array” : { “type” : “…