Also, it is not a good idea to use size: 0 with the terms aggregation. For high cardinality field (like street names) you run the risk of Out of Memory Errors occurring which will destabilise your cluster
Just updated the query (Number with aggs was to indicate the nested level )
Now getting the following error:
Parse Failure [Found two aggregation type definitions in [STREET]: [terms] and [sum_agg]]]; }]
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.