I want to set up an AggregationBuilders in Java with a Bucket Script to calculate the ratio of 2 values in a query.
{ "aggs": { "filt":