You are here

public function SearchApiSolrConnection::setSoftCommit in Search API Solr 7

Sets whether this connection will use soft commits when comitting.

Note that this setting only has any effect when using Solr 4.x or higher.

Parameters

$soft_commit: TRUE if soft commits should be used, FALSE otherwise. Default is FALSE.

Overrides SearchApiSolrConnectionInterface::setSoftCommit

File

includes/solr_connection.inc, line 256

Class

SearchApiSolrConnection
Represents a Solr server resource.

Code

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