I need to compare two aggregation queries output array n watcher condition, i have used chain input to execute my queries .
not properly getting how can compare those two bucket arrays in watcher condtion.
Could i get any help from you !
can you explain in more detail what the problem is? Is it accessing the fields?
ctx.payload.first.aggs.AggregatedData and ctx.payload.second.aggs.AggregatedData contains the different buckets. The next step would probably be to walk through them and compare them, but I do not know what exactly your plan is with those, so it is hard to tell for me.
Please check out the examples repo that contains a few examples to get more accustomized with scripting.
I need to compare these two arrays in watcher condition (something like that not pretty sure).
and getting outcome as beat1 and beat2 are missing in second array.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.