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.

CommentFileSizeAuthor
#1 customiz_apche_solr-1786432-1.patch1.43 KBjanusman
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

janusman’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Category: Support request » Feature request
Priority: Critical » Normal
Issue summary: View changes
Status: Active » Needs review
FileSize
1.43 KB

This 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.

janusman’s picture

Status: Needs review » Closed (won't fix)

Actually, 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.