</h3>
	<?php 
// @todo add the rest of the discovered info here.
?>

	<pre>
Solr Server IP address : <?php 
echo esc_html(getenv('PANTHEON_INDEX_HOST'));
?>
<br />
Solr Server Port       : <?php 
echo esc_html(getenv('PANTHEON_INDEX_PORT'));
?>
<br />
Solr Server Path       : <?php 
echo esc_html(s4wp_compute_path());
?>
<br />
	</pre>
</div>
<?php 
$action = 'options-general.php?page=solr-power';
include 'views/options/indexing.php';
include 'views/options/action.php';
include 'views/options/query.php';
?>



</div>
/**
 * Connect to the solr service
 * @return solr service object
 */
function s4wp_get_solr()
{
    # get the connection options
    $plugin_s4wp_settings = s4wp_get_option();
    $solarium_config = array('endpoint' => array('localhost' => array('host' => getenv('PANTHEON_INDEX_HOST'), 'port' => getenv('PANTHEON_INDEX_PORT'), 'scheme' => 'https', 'path' => s4wp_compute_path(), 'ssl' => array('local_cert' => realpath(ABSPATH . '../certs/binding.pem')))));
    apply_filters('s4wp_connection_options', $solarium_config);
    # double check everything has been set
    if (!($solarium_config['endpoint']['localhost']['host'] and $solarium_config['endpoint']['localhost']['port'] and $solarium_config['endpoint']['localhost']['path'])) {
        syslog(LOG_ERR, "host, port or path are empty, host:{$host}, port:{$port}, path:{$path}");
        return NULL;
    }
    $solr = new Solarium\Client($solarium_config);
    apply_filters('s4wp_solr', $solr);
    // better name?
    return $solr;
}