Given following document
{
"addresses": [ {"city": "New York"},
{"city": "Brussels" } ]
}
Is it possible to dereference the first element in the array using a painless script filter? All queries I tried did crash. E.g. I want to create a scripted field firstCity like doc['addresses'][0]['city']