Skip to content

Instantly share code, notes, and snippets.

@netsensei
Created January 19, 2012 11:04
Show Gist options
  • Save netsensei/1639428 to your computer and use it in GitHub Desktop.
Save netsensei/1639428 to your computer and use it in GitHub Desktop.
Get a Solr Query and Response object in D7
$env_id = 'solr';
$query = apachesolr_current_query($env_id);
if ($query) {
$response = apachesolr_static_response_cache($query->getSearcher());
}
$query_params = $query->getParams();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment