|
SolrClient::addDocumentsAdds a collection of SolrInputDocument instances to the index Beschreibung
public void SolrClient::addDocuments
( array
$docs
[, bool $overwrite = true
[, int $commitWithin = 0
]] )Adds a collection of documents to the index. Parameter-Liste
RückgabewerteReturns a SolrUpdateResponse object or 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 process the request. Beispiele
Beispiel #1 SolrClient::addDocuments example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
SolrObject Object
(
[responseHeader] => SolrObject Object
(
[status] => 0
[QTime] => 2
)
)
Siehe auch
|