Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
While having a data alteration for creating aggregated fulltext fields can be pretty useful, there is no real reason to not allow other aggregation at the same time – i.e., instead of only concatenating all text values, we could also compute sums, count values or use other aggregations.
The attached patch would add this feature (hopefully in a correct way), reviews would be appreciated.
Supported aggregations at the moment are fulltext, sum, count, max, min and first.
Known problem: For some reason, "Remove field" doesn't work anymore. Will have to see about that …
Comment | File | Size | Author |
---|---|---|---|
#2 | search_api_update_fix.patch | 1.26 KB | fago |
search_api.aggregation_fields.patch | 22.31 KB | drunken monkey | |
Comments
Comment #1
drunken monkeyNo complaints, seems to work and I fixed the known problem – so, committed.
Comment #2
fagoI ran in a problem with this, caused by the update not marking exports-in-code as changed. Thus the changes are overridden on the next cache-clear, which undos the changes the update made.
Fix for the update procedure attached.
Comment #3
drunken monkeyOw, sorry, didn't think about that. Should keep that in mind in the future …
Committed, thanks!