Apache_Solr_Service::commit
Send a commit command. Will be synchronous unless both wait parameters are set to false.
Signature
public function commit([boolean
$expungeDeletes = false,
[boolean
$waitFlush = true,
[boolean
$waitSearcher = true,
[integer
$timeout = 3600]]]] )
Parameters
$expungeDeletes
—
boolean
- Defaults to false, merge segments with deletes away
$waitFlush
—
boolean
- Defaults to true, block until index changes are flushed to disk
$waitSearcher
—
boolean
- Defaults to true, block until a new searcher is opened and registered as the main query searcher, making the changes visible
$timeout
—
integer
- Maximum expected duration (in seconds) of the commit operation on the server (otherwise, will throw a communication exception). Defaults to 1 hour
Returns
- Apache_Solr_Response
Errors/Exceptions
-
Apache_Solr_HttpTransportException
- If an error occurs during the service call