Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Search API Grouping Solr

No security coverage

Part of the Search ecosystem · 87 projects

View on drupal.org

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.

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 Release date
1.0.0-alpha2 Pre-release May 1, 2024
1.0.0-alpha1 Pre-release Feb 22, 2024
1.x-dev Dev Feb 22, 2024