Passing a Solr search query to a view
While you could technically do this by implementing a hook_form_alter, to capture and overwrite the submit handler, if you're already using the Apache Solr Views module, you'd be better off creating an exposed filter, setting the exposed filters to display in a block, and then using that instead of the default search form block. You can do that without custom code.