Experimental project

This is a sandbox project, which contains experimental code for developer use only.

The Drupal 8 Port of the module is now moved to the official Search API Grouping module. Any further development will be ongoing on https://www.drupal.org/project/search_api_grouping.

This module is the Drupal 8 Port for the Search API Grouping module. It allows you to group search results and denormalize entities when indexing them.

I have created two processors, one for the grouping part and the other is responsible for the denormalization.

With the grouping you're able to group the search result by a specific field. Inside the different groups it is possible to sort the results by another field ascending and descending. As well you can define how many results per group should be displayed.

With the denormalization processor you can denormalize an entity on a specific field.

Example of denormalization with this entity:

node = {
    nid: 1234,
    field1: [1, 2, 3]
}

In the index the denormalized entity will exist three times:

NID,       field1,       
--------------
1234         1 
1234         2
1234         3 

The Module is still under active development and I will add features and fix bugs time to time. But any feedback and help is welcome.

Supporting organizations: 
Sponsoring the worktime

Project information