Needs review
Project:
Suppress Search
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2009 at 20:15 UTC
Updated:
2 Jul 2009 at 02:58 UTC
This patch adds the ability to preserve core's user search. If you are using something
I also attach a simple .install that changes this module's weight in the system table and allows this setting to work with the acquia_search module which highjacks all search forms.
| Comment | File | Size | Author |
|---|---|---|---|
| suppress_search.install.txt | 220 bytes | tizzo | |
| preserve-user-search.patch | 2.2 KB | tizzo |
Comments
Comment #1
tizzo commentedSorry, didn't finish my though: If you are using something like solr it is likely that your search does not work with users. This patch adds a checkbox to preserve core's search for users.
Comment #2
gddIn the current module, you should be able to check 'Hide Content Tab' and leave 'Hide Users Tab' unchecked, and continue to use User search. It will still be there as a tab on the search results page, just like it would be in normal core search. Is that what you're looking for?
As for the install patch, I'll take a look at Acquia's seach implementation, I just want to make sure I understand all the implications there.
Thanks
Comment #3
tizzo commentedUnless I'm mistaken the section currently in the module:
will override all search forms even if the user tab is still there. In addition, I suspect many people will be looking to implement an alternative search will be using acquia powered solr (and as such most likely using acquia_search.module). This module overrides all search as well, including the user search.
What this patch does is provide a way for users to reclaim the user search box and reconnect it with core search. In order to make this work with acquia_search (and presumably most other modules that might form_alter the search form) we must bump up the module's weight in the system table so that it can form alter after acquia_search and restore the user search settings.
I have an additional patch that adds another user permission for search users so that it is possible to allow some roles to to view profiles but not to search for them and allow other roles to search, but that sort of doesn't seem like something that should live in this module really... Maybe it should be a core patch for D7 if it isn't already.
Comment #4
gddMuch of the functionality of Suppress Search has actually been rolled into the most recent -dev version of Solr and should be released next week. Once that happens, I'm unsure what the future of this module will be. So your documentation will soon be out of date. Thank you very much for the effort though, it is much appreciated!
Comment #5
gddArgh wrong issue, sorry!