PHP » GoLang |
login |
register |
about
|
GoLang SolrClient::ping
request it (364)
GoLang replacement for PHP's SolrClient::ping
[edit | history]
SolrClient::ping(PECL solr >= 0.9.2) SolrClient::ping — Checks if Solr server is still up DescriptionChecks if the Solr server is still alive. Sends a HEAD request to the Apache Solr server. ParametersThis function has no parameters. Return ValuesReturns a SolrPingResponse object on success and throws an exception on failure. Errors/ExceptionsThrows SolrClientException if the client had failed, or there was a connection issue. Throws SolrServerException if the Solr Server had failed to satisfy the request. Examples
Example #1 SolrClient::ping() example
<?php The above example will output something similar to: |
more
Recently updated
more
Most requested
more
Last requests
|