|
SolrClient::pingChecks if Solr server is still up Beschreibung
public SolrPingResponse SolrClient::ping
( void
)
Checks if the Solr server is still alive. Sends a HEAD request to the Apache Solr server. Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteReturns a SolrPingResponse object on success and throws an exception on failure. Fehler/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. Beispiele
Beispiel #1 SolrClient::ping example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: |