How to Edit Content in $content['main']
The header normally comes from the page, and the search field comes from the form.
In order to place the h1 under the search field I'm usually using the next steps:


Hide the title on the search results page using the theme_preprocess_page
Use the search-results.tpl.php to insert the title under the search field