You are here

public function DrupalApacheSolrService::setSoftCommit in Apache Solr Search 7

Same name and namespace in other branches
  1. 8 Drupal_Apache_Solr_Service.php \DrupalApacheSolrService::setSoftCommit()
  2. 6.3 Drupal_Apache_Solr_Service.php \DrupalApacheSolrService::setSoftCommit()

Flags whether to use soft commits for Solr 4.x.

Parameters

bool $soft_commit: Whether or not to use soft commits for Solr 4.x.

File

./Drupal_Apache_Solr_Service.php, line 154

Class

DrupalApacheSolrService
Starting point for the Solr API. Represents a Solr server resource and has methods for pinging, adding, deleting, committing, optimizing and searching.

Code

public function setSoftCommit($soft_commit) {
  $this->soft_commit = (bool) $soft_commit;
}