official doc introduces moving_fn
syntax as below.
{
"moving_fn": {
"buckets_path": "the_sum",
"window": 10,
"script": "MovingFunctions.min(values)"
}
}
then, is this possible to refer multiple buckets like below?
"moving_fn": {
"buckets_path": {
"foo": "foo",
"bar": "bar"
},
"window": 10,
"script": "MovingFunctions.sum(params.foo.values) + MovingFunctions.sum(params.bar.values)"
}
It seems not works. I got an Error like below
[moving_fn] buckets_path doesn't support values of type: START_OBJECT"
but I wanna confirm centainly this isn't possible. thanks in advance