Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Search API Grouping Solr

No security coverage Under active development 11 sites

Part of the Search ecosystem · 126 projects

This module uses the Search API Grouping module to separate specific fields into their own documents, allowing them to be used in views for better sorting and display. It helps to denormalize data for improved search functionality.

One of the biggest issues with Search API is the ability to break out data within Search API by fields. The following module leverages the Search API Grouping module to help denormalize fields and break them into their own documents. When using views allows for the field to be used in the entity

At the moment, Search API Grouping does not have a stable version for Drupal 10+. There are patches in the queue currently.

Current Issues Outstanding:

Installing

Composer Lenient and Composer Patches is required at the moment as Search API Grouping to move forward while the following issue #3289516: Automated Drupal 10 compatibility fixes until the following issue has been merged.

composer require mglaman/composer-drupal-lenient

composer config --merge --json extra.drupal-lenient.allowed-list '["drupal/search_api_grouping"]'

composer config --merge --json extra.patches.drupal/search_api_grouping '{"Issue #3289516: Drupal 10 Comp": "https://www.drupal.org/files/issues/2022-06-16/search_api_grouping.1.x-dev.rector.patch"}'

composer config --merge --json extra.patches.drupal/search_api_grouping '{"Issue #3319197: Call to member function getValues": "https://www.drupal.org/files/issues/2022-11-04/3319197-getvalue-2.patch"}'

composer config --merge --json extra.patches.drupal/search_api_grouping '{"Issue #3275014: element_validate_integer_positive not found": "https://www.drupal.org/files/issues/2022-04-13/element_validate_integer_positive-not-found-3275014-1.patch"}'

composer config --merge --json extra.patches.drupal/search_api_grouping '{"Issue #3360720: Warning foreach checkboxes": "https://www.drupal.org/files/issues/2023-05-16/3360720-warning-foreach-argument.patch"}'

composer config --merge --json extra.patches.drupal/search_api_grouping '{"Issue #3423336: getDenormalizationFields does not return field names": "https://git.drupalcode.org/project/search_api_grouping/-/merge_requests/4.diff"}'

composer require 'drupal/search_api_grouping:1.x-dev' drupal/search_api_grouping_solr

After installing the modules via composer then enable the module by going to Extend then selecting the module.

Once enabled go to the Processors for the desired Index and enable the "Denormalization" and "Denormalization - Altering" plugins.

Scroll to the bottom and select the fields that should be broken out. Under the Denormalization settings.

Save.

After, the index will need to reindex the entities.

When that is done creating a view now will create separate rows for each of the data points provided and allow sorting to properly happen.

Ask your assistant about Search API Grouping Solr

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Feb 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-alpha2 Pre-release 10–11 May 1, 2024
1.0.0-alpha1 Pre-release 10 Feb 22, 2024
1.x-dev Dev 10–11 Feb 22, 2024