Describe the issue:
I need help with a query to group the results.
GET user_info,user_auth_cards_info/_search
{
“from”: 0,
“size”: 20,
“query”: {
“bool”: {
“filter”: [
{
“match”: {
“e_name.autocomplete”: {
“query”: “tes”
}
}
}
]
}
}
}
I want to group the results so that we have three different arrays where the results start with “tes” and then contains “tes” and then everything else
so ie
[tes,test, test123]
[abtes, btest]
[hello, etc]