Hi ,
why i can't get the result of the script :
GET /test_bookings_v2/_search?size=0
{
"script_fields": {
"avg_price": {
"script": {
"lang": "expression",
"source": "doc['price'].avg()"
}
}
}
}
i use ELK :7.7.0
any help please i want to use this field in my visualization.