function getSolrVersion($solr_host, $solr_port, $solr_baseurl, $solr_corename) { if ($solr_baseurl == "undefined") { $solr_baseurl = ""; } if ($solr_corename == "undefined") { $solr_corename = ""; } $solr = new Solr(); if ($solr->connect($solr_host, $solr_port, $solr_baseurl, $solr_corename)) { return $solr->getVersion(); } return ""; }