Watcher source script problem /Index_out_of_bounds_exception

Hello,

I try to make a watcher where one field ("spot") from one indice ("mktdata-2020.01.28") will be compared from two fields ("lbound" and "ubound") from another indice ("price-request-2020.01.28") but i am stuck since a couple of hours on the script and this "index_out_of_bounds_exception" java error.

I gave some ES snippets if someone can help:
First:

Second:

My configuration watch:

The result:

Can someone help me on this please?

Thank you,
Pierre Jutard

It' s a size problem, when setting Size:10 it worked and i go to a cast error after but when you change the equality in inequality it worked definitly.
Final solution:

image

Thanks
Pierre Jutard

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.