Views show the MySql query that it generates, it would be really great if solr views could do the same.

Comments

toemaz’s picture

subscribe

rjbrown99’s picture

I initially had no idea how to do this, but Scott Reynolds chimed in on another issue about it.

http://drupal.org/node/728088#comment-2656442

This was VERY helpful to me in assessing what was going on in the Solr query.

EvanDonovan’s picture

Subscribing.

Remon’s picture

subscribe

kenorb’s picture

+1

HACK:
File: SolrPhpClient/Apache/Solr/Service.php

	protected function _sendRawGet($url, $timeout = FALSE)
	{
...
		else
		{
			// use the default timeout pulled from default_socket_timeout otherwise
			stream_context_set_option($this->_getContext, 'http', 'timeout', $this->_defaultTimeout);
		}

		### HACK - BF 
		# Adding in the old message output of SOLR queries to admin screens
		if(user_access('administer site configuration')){
         drupal_set_message(sprintf('<a href="%s" title="%s" target="_blank">SOLR query</a>', htmlspecialchars($url), htmlspecialchars($url)));
        }
		### END HACK 
kenorb’s picture

kenorb’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 6 is no longer officially supported. If you think this issue is still relevant for 8.x, feel free to re-open.