SolrClient::addDocument
SolrClient::addDocument
(PECL solr >= 0.9.2)
SolrClient::addDocument — Adds a document to the index
Description
public SolrUpdateResponse SolrClient::addDocument ( SolrInputDocument $doc [, bool $overwrite = true [, int $commitWithin = 0 ]] )
This method adds a document to the index.
Parameters
-
doc
-
The SolrInputDocument instance.
-
overwrite
-
Whether to overwrite e