Apache_Solr_Service::ping
Call the /admin/ping servlet, can be used to quickly tell if a connection to the server is able to be made.
Signature
public function ping([integer
$timeout = 2] )
Parameters
$timeout
— integer- maximum time to wait for ping in seconds, -1 for unlimited (default is 2)
Returns
- float
- Actual time taken to ping the server, FALSE if timeout or HTTP error status occurs