Difference between aggs and aggregations

Hi All, New to learning ELK and I have been going through the playlist on Elastic YT page hosted by Lisa Jung.
Lisa Jung's Elastic Repo

I am confused as to difference between the keywords aggs and aggregations

Dataset used: Ecommerce Dataset used

When I run the following two queries, I get the same results.


GET ecommerce_data/_search
{
  "aggregations": {
    "top5cust": {
      "terms": {
        "field": "CustomerID",
        "size": 5
        }
      }
    }
  }
GET ecommerce_data/_search
{
  "size": 0, 
  "aggs": {
    "top5cust": {
      "terms": {
        "field": "CustomerID",
        "size": 5,
        "order": {
          "_count": "desc"
        }
      }
    }
  }
}

The results are are identical as well.

I think there is no difference between them. aggs is just the abbreviation of aggregations

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.