|
SolrClient::pingChecks if Solr server is still up Description
public SolrPingResponse SolrClient::ping()
Checks 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
The above example will output something similar to: |