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.
I want to display apache solr autocomplete keywords suggestion to be group like:-
----Suggestion from texonomy-----
term1
term2
term3
----Suggestion from products---
product3
product4
product10
----Suggestion from pages---
contentX
contentY
contentZ
Actually I am new in drupal, so somebody can help me how's it possible.
Comment | File | Size | Author |
---|---|---|---|
#1 | customiz_apche_solr-1786432-1.patch | 1.43 KB | janusman |
Comments
Comment #1
janusman CreditAttribution: janusman at Acquia commentedThis would probably require a big rewrite of the module.
I can however, add a hook_apachesolr_autocomplete_suggestions_alter() hook so that you can change the suggestions array in whatever ways you'd like.
Comment #2
janusman CreditAttribution: janusman at Acquia commentedActually, I posted the patch here, but work was already underway on #2157713: Allow autocomplete suggestions to be altered.
Of course, I understand this is not the actual feature request you mentioned--but it does open the door to someone adding the needed functionality in a clean way.
Closing.