Example: I have fields of data contains Departure station, gender, age, Destination etc..
-
I just want to find the top list of "Destinations" along with same "Departure station"
-
Top list of individial Destination, gender and Destination
Example: below code, I was able to get the only top list of "Departure" only. I wanted to get the top list of from "Departure" to "Destination" with same "gender" and "age" count?
#code:
{
"size":0,
"aggs":{
"top-terms-aggregation":{
"terms":{
"field":"Departure",
"size":10
}
}
}
}
-Thanks advance