Hi Mayya,
Thanks for your answer.
Trying the code you provided me I get:
"aggregations": {
"myagg": {
"doc_count": 19805,
"max_value": {
"value": 1110971
}
}
}
What I wanted was to get the name of the results that match with related.name == javascript AND related.count if the maximum in the array.
It is not very clear to me what you mean "related.count if the maximum in the array."?
Can you please provide an example of the response you expect based on your original example data?
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.