You are here

public function Apache_Solr_Service_Balancer::setCreateDocuments in Apache Solr Search 5

File

SolrPhpClient/Apache/Solr/Service/Balancer.php, line 424

Class

Apache_Solr_Service_Balancer
Reference Implementation for using multiple Solr services in a distribution. Functionality includes: routing of read / write operations failover (on selection) for multiple read servers

Code

public function setCreateDocuments($createDocuments) {
  $this->_createDocuments = (bool) $createDocuments;
  if ($this->_currentReadService) {
    $service = $this
      ->_selectReadService();
    $service
      ->setCreateDocuments($createDocuments);
  }
}