function DrupalApacheSolrServiceInterface::commit in Apache Solr Search 8
Same name and namespace in other branches
- 6.3 apachesolr.interface.inc \DrupalApacheSolrServiceInterface::commit()
- 7 apachesolr.interface.inc \DrupalApacheSolrServiceInterface::commit()
Send a commit command. Will be synchronous unless both wait parameters are set to false.
Parameters
boolean $optimize Defaults to true:
boolean $waitFlush Defaults to true:
boolean $waitSearcher Defaults to true:
float $timeout Maximum expected duration (in seconds) of the commit operation on the server (otherwise, will throw a communication exception). Defaults to 1 hour:
Return value
response object
Throws
Exception If an error occurs during the service call
2 methods override DrupalApacheSolrServiceInterface::commit()
- DrupalApacheSolrService::commit in ./
Drupal_Apache_Solr_Service.php - Send a commit command. Will be synchronous unless both wait parameters are set to false.
- DummySolr::commit in tests/
Dummy_Solr.php - Send a commit command. Will be synchronous unless both wait parameters are set to false.
File
- ./
apachesolr.interface.inc, line 472
Class
- DrupalApacheSolrServiceInterface
- The interface for all 'Service' objects.
Code
function commit($optimize = TRUE, $waitFlush = TRUE, $waitSearcher = TRUE, $timeout = 3600);