public function SearchApiSolrConnectionInterface::commit in Search API Solr 7
Sends a commit command to the Solr server.
Will be synchronous unless $waitSearcher is set to FALSE.
Parameters
bool $waitSearcher: (optional) Wait until a new searcher is opened and registered as the main query searcher, making the changes visible. Defaults to true.
int|false $timeout: Seconds to wait until timing out with an exception. Defaults to an hour.
Return value
object A response object.
Throws
SearchApiException If an error occurs during the service call.
1 method overrides SearchApiSolrConnectionInterface::commit()
- SearchApiSolrConnection::commit in includes/
solr_connection.inc - Sends a commit command to the Solr server.
File
- includes/
solr_connection.interface.inc, line 209
Class
- SearchApiSolrConnectionInterface
- The interface for a Solr connection class.
Code
public function commit($waitSearcher = TRUE, $timeout = 3600);