Would it be possible to simply show a search form with the search terms pre-populated, but NOT perform the search until the user submits the form? This would save many resources for large sites, or recently-migrated sites.

Thrifty404 does this, but it does not have as many options as Search 404, nor does it parse the URL as well.

It seems like a simple addition to Search 404. I envision a checkbox on the settings page, worded something like this "Automatically perform search", checked by default, with a description of "Unchecking this will simply pre-populate the search field (which saves resources)."

What do you think? I will happily submit a patch for it.

Comments

geerlingguy’s picture

I like this a lot; would let me stay with Search404 on a few of my larger sites...

joelstein’s picture

I had another related idea. If the Throttle module is enabled and the website is currently under a load, Search 404 could switch to this "thrifty" behavior.

zyxware’s picture

Version: 6.x-1.9 » 6.x-1.x-dev
Status: Active » Fixed

This has been implemented in the latest dev version of the module. Can you please check it out.

zyxware’s picture

@joelstein - I have also added the auto-throttle feature so that auto search gets disabled when the site is under load and throttle module is enabled. Thanks for the suggestion.

joelstein’s picture

It works perfectly. Thank you!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.