Add default search result page when search request is empty

fgm - January 17, 2008 - 13:37
Project:Drupal
Version:7.x-dev
Component:search.module
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

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

robertDouglass - April 15, 2008 - 09:35
Title:Empty searches dominate search logs. So what ?» Add default search result page when zero search results are found.

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

fgm - April 15, 2008 - 10:01

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

fgm - April 15, 2008 - 10:03
Title:Add default search result page when zero search results are found.» Add default search result page when search request is empty

adjusting topic

#4

elgreg - July 31, 2008 - 18:01

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

douggreen - August 26, 2008 - 19:43

This is closely related, if not a duplicate of #115540: "no results" page not themeable, and they should be worked together.

 
 

Drupal is a registered trademark of Dries Buytaert.