public function SearchApiSolrConnectionInterface::optimize in Search API Solr 7
Sends an optimize 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::optimize()
- SearchApiSolrConnection::optimize in includes/
solr_connection.inc - Sends an optimize command to the Solr server.
File
- includes/
solr_connection.interface.inc, line 278
Class
- SearchApiSolrConnectionInterface
- The interface for a Solr connection class.
Code
public function optimize($waitSearcher = TRUE, $timeout = 3600);