You are here

public function DrupalApacheSolrService::setSoftCommit in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 Drupal_Apache_Solr_Service.php \DrupalApacheSolrService::setSoftCommit()
  2. 7 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 153

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;
}