You are here

function DrupalApacheSolrServiceInterface::addDocuments in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 apachesolr.interface.inc \DrupalApacheSolrServiceInterface::addDocuments()
  2. 7 apachesolr.interface.inc \DrupalApacheSolrServiceInterface::addDocuments()

Add an array of Solr Documents to the index all at once

Parameters

array $documents Should be an array of ApacheSolrDocument instances:

boolean $allowDups:

boolean $overwritePending:

boolean $overwriteCommitted:

Return value

response objecte

Throws

Exception If an error occurs during the service call

2 methods override DrupalApacheSolrServiceInterface::addDocuments()
DrupalApacheSolrService::addDocuments in ./Drupal_Apache_Solr_Service.php
Add an array of Solr Documents to the index all at once
DummySolr::addDocuments in tests/Dummy_Solr.php
Add an array of Solr Documents to the index all at once

File

./apachesolr.interface.inc, line 458

Class

DrupalApacheSolrServiceInterface
The interface for all 'Service' objects.

Code

function addDocuments($documents, $overwrite = NULL, $commitWithin = NULL);