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.