Collapsing or grouping search results means keeping similar results together so they display in a concise, readable way.
There are typically two scenarios where you want to collapse search results:
To display a concise list of results, often based on multiple criteria. You do not want to explore, you want to see specific hits.
To do this, use grouping as explained in this section.
Examples:
To see the overall distribution of search results in a dashboard, and to explore the results by drilling down on certain areas.
To do this, use faceting. See Creating Facets to Refine Search Results.
For example, you want to know how different Apple products are selling in different countries.
About Grouping Setting Up Grouping