Hello, my question is about aggregation and sub aggregation.
I would like to use ES as a replacement of my aggregation system (classical SGBRr).
With a classic SQL language, it is possible to do a "group by" on more than one field.
Example :
SELECT Continent, Country, Sum(Visits) Visits
FROM TABLE
GROUP BY Continent, Country
ORDER BY Visits DESC
LIMIT 5
Here i want the top 5 couples of "Continent, Country" ordered by descending visits.
With ES, i do a first aggregation of the Continent dimension, and then a sub aggregation on the Country dimension. But i have no guarantee to get the same result than with a group by on two columns.
Would it be possible with the future SQL language directly accessible on ES ?
I'm not sure I understand this, however. Nesting aggregations in this manner will give you the same data as a SQL group on two fields, albeit in a slightly different format (nested trees rather than rows).
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.