downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SolrClient::query> <SolrClient::optimize
[edit] Last updated: Fri, 24 Jun 2011

view this page in

SolrClient::ping

(PECL solr >= 0.9.2)

SolrClient::pingبررسی روشن بودن سرور Solr

Description

public SolrPingResponse SolrClient::ping ( void )

بررسی روشن بودن سرور 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:




add a note add a note User Contributed Notes SolrClient::ping - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites