hi all  and sorry for my poor english  .
I have an index with this mapping
"mappings":{
    "properties":{
        "_class":{
        "type": "text",
        "fields":{"keyword":{"type": "keyword", "ignore_above": 256 }}
        },
        "my":{
           "type": "keyword" 
        },
        "notifications":{
            "type": "nested",
            "properties":{
                "detail":{"type": "keyword"},
                "identifier":{"type": "keyword"},
                "modelType":{"type": "keyword"},
                "notificationDate":{    "type": "long"     } 
             }
    }
}
I'm creating a script on notificatioDate fields.
But when I do doc['notifications.notificationDate'].value , kibana says me 'Script not valid' with no reason specified
Consider that it 's searchable and aggragatable.