Is this possible ?
GET hockey/player/_search
{
"query": {
"match_all": {}
},
"script_fields": {
"date_add_days_script": {
"script": {
"id": "date_add_days",
"params": {
"days": 5,
"curmillis": "doc['born'].value.millis"
}
}
}
}
}
I am getting the following error:
caused_by": {
"type": "number_format_exception",
"reason": """For input string: "doc['born'].value.millis""""
}