public function SearchApiSolrService::commit in Search API Solr 7
Sends a commit command to the Solr server.
File
- includes/
service.inc, line 2615
Class
- SearchApiSolrService
- Search service class using Solr server.
Code
public function commit() {
// If committing has been disabled altogether, do nothing here.
if (!empty($this->options['commits_disabled'])) {
return;
}
try {
$this
->connect();
return $this->solr
->commit(FALSE);
} catch (SearchApiException $e) {
watchdog_exception('search_api_solr', $e, '%type while trying to commit on server @server: !message in %function (line %line of %file).', array(
'@server' => $this->server->machine_name,
), WATCHDOG_WARNING);
}
}