Hello !
I have a requirement which I would need calculate the total amount spiked compared to previous of latest month.
I was able to achieve this by using watcher .
However, this would be dependent on watcher so I am looking for possibility in _search context , perhaps using runtime_mapping, but in the doc, I was not able to find a way to access the aggregation result .
e.g aggs[AGGREGATION_NAME] instead of doc[FIELD_NAME]
Would there be any way to process the aggregation result in search context ?
Thanks,
Yu