public void SolrClient::addDocuments ( array
$commitWithin= 0 ]] )
SolrClient::addDocuments — Adds a collection of SolrInputDocument instances to the index
An array containing the collection of SolrInputDocument instances. This array must be an actual variable.
Whether to overwrite existing documents or not. If
FALSEthere will be duplicates (several documents with the same ID).Внимание
PECL Solr < 2.0 $allowDups was used instead of $overwrite, which does the same functionality with exact opposite bool flag.
$allowDups = false is the same as $overwrite = true
Number of milliseconds within which to auto commit this document. Available since Solr 1.4 . Default (0) means disabled.
When this value specified, it leaves the control of when to do the commit to Solr itself, optimizing number of commits to a minimum while still fulfilling the update latency requirements, and Solr will automatically do a commit when the oldest add in the buffer is due.