PHP » GoLang |
login |
register |
about
|
GoLang SolrClient::addDocuments
request it (346)
GoLang replacement for PHP's SolrClient::addDocuments
[edit | history]
SolrClient::addDocuments(PECL solr >= 0.9.2) SolrClient::addDocuments — Adds a collection of SolrInputDocument instances to the index Description
public void SolrClient::addDocuments
( array
$docs
[, bool $overwrite = TRUE
[, int $commitWithin = 0
]] )Adds a collection of documents to the index. Parameters
Return ValuesReturns a SolrUpdateResponse object or 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 process the request. 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
|
more
Recently updated
more
Most requested
more
Last requests
|