SolrClient::ping
(PECL solr >= 0.9.2)
SolrClient::ping — بررسی روشن بودن سرور Solr
Description
بررسی روشن بودن سرور Solr. ارسال درخواست HEAD به سرور Apache Solr.
Parameters
This function has no parameters.
Return Values
بازگرداندن شی SolrPingResponse در صورت موفقیت و ایجاد SolrClientException در صورت شکست.
Examples
Example #1 مثال SolrClient::ping()
<?php
$options = array
(
'hostname' => SOLR_SERVER_HOSTNAME,
'login' => SOLR_SERVER_USERNAME,
'password' => SOLR_SERVER_PASSWORD,
'port' => SOLR_SERVER_PORT,
);
$client = new SolrClient($options);
$pingresponse = $client->ping();
?>
The above example will output something similar to:
There are no user contributed notes for this page.
