You are here

public function SearchApiSolrService::scheduleCommit in Search API Solr 7

Schedules a commit operation for this server.

The commit will be sent at the end of the current page request. Multiple calls to this method will still only result in one commit operation.

2 calls to SearchApiSolrService::scheduleCommit()
SearchApiSolrService::deleteItems in includes/service.inc
Implements SearchApiServiceInterface::deleteItems().
SearchApiSolrService::indexItems in includes/service.inc
Indexes the specified items.

File

includes/service.inc, line 2637

Class

SearchApiSolrService
Search service class using Solr server.

Code

public function scheduleCommit() {
  if (!$this->commitScheduled) {
    $this->commitScheduled = TRUE;
    drupal_register_shutdown_function(array(
      $this,
      'commit',
    ));
  }
}