How to Group Search Results Based on Field Values

Field Collapsing enables you to group search results based on field values, keeping only one entry per group.

How to Enable Collapsing for Your Search Results

  1. Edit the Results.html page using a text editor.

  2. On the body element add the data-collapse-specification property as shown in the graphic below:

How to Enable Collapsing for Your Content by Search Web Part

  1. Edit the Results.html page using a text editor.

  2. Locate your Content-by-Search <div> element and add the data-collapse-specification property like the one shown below.

  3. Note that you can specify a different field for collapsing other than the one used for main results.