Question: what is aggs in elasticsearch?
Answer: In Elasticsearch, all analytics are built using aggregations. Aggregations are constructed similar to queries, via a JSON-based DSL. ... Aggregations are specified under the “aggs” parameter. You can still specify a “query” for normal search if you also want to execute a search query.