I have to specify each but i am not sure how to find out how many to iterate but i ithink iterations are not possible here so is there a way just to print the keys? i want to avoid the doc_count?
that looping only works on lists. ctx.payload.aggregations is not a list.
ctx.payload.hits.hits is a list and you can then access the elements within like {{_source.foo}} or {{_index}}. You can only access fields within that single list element.
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.