Wanting to display term aggregations using d3js, hover the aggregations are
dynamic.
It appears that aggs are returned in an object rather than an array...
for instance if I have to term aggs; agg1 and agg2
the result is {"aggregations":{"term1":data,"term2":data}
that really kills me, as it seems, and would obviously be convenient for me
to return the aggs in an array. I guess normally you can request the aggs
by name but I will not be able to know that ahead of time as it will be
dynamic.
too tired but perhaps there is a way to convert the json to an array or
have elasticsearch return the aggs as an array?
Wanting to display term aggregations using d3js, hover the aggregations
are dynamic.
It appears that aggs are returned in an object rather than an array...
for instance if I have to term aggs; agg1 and agg2
the result is {"aggregations":{"term1":data,"term2":data}
that really kills me, as it seems, and would obviously be convenient for
me to return the aggs in an array. I guess normally you can request the
aggs by name but I will not be able to know that ahead of time as it will
be dynamic.
too tired but perhaps there is a way to convert the json to an array or
have elasticsearch return the aggs as an 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.