|
SolrClient::addDocumentsAdds a collection of SolrInputDocument instances to the index Description
public void SolrClient::addDocuments
( array
$docs
[, bool $allowDups = false
[, int $commitWithin = 0
]] )Adds a collection of documents to the index. Parameters
Return ValuesReturns a SolrUpdateResponse object on success and throws a SolrClientException on failure. Examples
Example #1 SolrClient::addDocuments example
<?php The above example will output something similar to: SolrObject Object ( [responseHeader] => SolrObject Object ( [status] => 0 [QTime] => 2 ) ) See Also
|