class Search extends Solr
{
protected $searchEngine;
function __construct()
{
$this->searchEngine = $this->connect();
}
public function checkAlive()
{
$searchEngine = $this->searchEngine;
if($searchEngine->ping())
{
return true;
}
else
{
return false;
}
}
}