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
Comment #1
geerlingguy CreditAttribution: geerlingguy commentedI like this a lot; would let me stay with Search404 on a few of my larger sites...
Comment #2
joelstein CreditAttribution: joelstein commentedI 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.
Comment #3
zyxware CreditAttribution: zyxware commentedThis has been implemented in the latest dev version of the module. Can you please check it out.
Comment #4
zyxware CreditAttribution: zyxware commented@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.
Comment #5
joelstein CreditAttribution: joelstein commentedIt works perfectly. Thank you!