Hello,
Lets us assume that i have customers information with city , state.
Now i want to Group Customer By State, by City.
can anyone help me to form query with the multiple fields?
if it is only for state, the query is as shown below
GET customerindex/_search
{
"size": 0,
"aggs": {
"group_by_state": {
"terms": {
"size": 100,
"field": "state.keyword"
}
}
}
}
But i want to form query to groupby state and city(multiple fields).
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.