Add default search result page when search request is empty
| Project: | Drupal |
| Version: | 7.x-dev |
| Component: | search.module |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Experience with search logging using the zeitgeist module on various sites I maintain in the last 12 months have been showing a fairly constant behaviour: empty searches tend to outnumber the most often used non-empty search by a 10 to 20-to-1 ratio.
Currently, such empty searches bring the user to the general search page, and it seems that for many sites, this may not be optimal, because it loses them an important occasion to lead users where the web master feels best to lead them.
Of course, this search page can be modified as needed via theming (in D5, no such mention for D6), but it seems it would be a neat idea for non-developers to allow empty searches to be directed to a specific page via a simple setting on search module, like "Redirect empty searches to: (textfield), defaulting to front page)".

#1
When you say empty searches, do you mean users searching for an empty string, or searches that don't return any results?
Renaming to reflect feature request.
#2
I mean searches for an empty string. Searches returning nothing are actually searches so it makes sense to return the normal search page and offer the user another chance to search. Empty search criteria, however, can mean either a crawler at work (in which case redirecting to a TOC is useful), or a lost user who doesn't even know what to actually search (in which case redirection to a specially crafted is useful too).
This being said, allowing for a simpler injection methods for admins to insert additional help on search results returning no results would be useful too, but these are two distinct needs.
#3
adjusting topic
#4
subscribing - would like to see the ability for a user to run a blank search on a content type to find all hits of that content type.
#5
This is closely related, if not a duplicate of #115540: "no results" page not themeable, and they should be worked together.