Hi,
I am trying to do a script transform in painless, and am following an example I found here regarding list.collect syntax.
My painless script is:
"transform" : {
"script" : "return ctx.payload.hits.aggs.users_per_month.buckets.collect {it}",
"lang": "painless"
},
This is failing at the "}";
What is a painless script that will extract a certain field from each of the results, returning a list?
thanks