Augmenting the core search module is not a very good idea. These changes will have to be remade if you ever update your core Drupal modules.
Instead, it would be best to create a custom module to alter the search form redirect. This way your code can live on even if you do a core Drupal update.
Comments
Comment #1
php5engineer commentedEasy way to do this is to replace line 1094 modules/search/search.module
to
Comment #2
rsharkey commentedAugmenting the core search module is not a very good idea. These changes will have to be remade if you ever update your core Drupal modules.
Instead, it would be best to create a custom module to alter the search form redirect. This way your code can live on even if you do a core Drupal update.
I have posted my source code for such a custom module in this thread here: http://drupal.org/node/391926#comment-6831472
If anyone needs any assistance, I would be happy to help.
Comment #3
dwwYes it's possible. I just did it on a D7 site and it's working fine.
Restoring the title so the issue makes more sense.