Capture search term? Is there a function that captures search parameters? Specifically I just need the search term as a variable to compare against certain node taxonomies to add a custom filter on the search template.

I want to capture the search term without going through any Solr API. Is this possible?
Typically searching with the default search box results in a url that looks like this:

/search/node/[search term]


So you can capture that search term (in your custom module presumably) with a line like this:

$path = explode('/', $_GET['q'], 3);

// Make sure the path you got has three components and begins with 'search'
if(count($path) == 3 &amp;&amp; $path[0]=="search") {
   // Get component #3 (index starts at 0)
   drupal_set_message("Here are my search terms: " . $path[2]);
}