Apache_Solr_Service_Balancer::optimize
Send an optimize command. Will be synchronous unless both wait parameters are set to false.
Signature
public function optimize([boolean
$waitFlush = true,
[boolean
$waitSearcher = true,
[integer
$timeout = 3600]]] )
Parameters
$waitFlush
—
boolean
$waitSearcher
—
boolean
$timeout
—
integer
- Maximum expected duration of the optimize operation on the server (otherwise, will throw a communication exception)
Returns
- Apache_Solr_Response
Errors/Exceptions
-
Apache_Solr_HttpTransportException
- If an error occurs during the service call