You are here

function DrupalApacheSolrServiceInterface::optimize in Apache Solr Search 6.3

Same name and namespace in other branches
  1. 8 apachesolr.interface.inc \DrupalApacheSolrServiceInterface::optimize()
  2. 7 apachesolr.interface.inc \DrupalApacheSolrServiceInterface::optimize()

Send an optimize command. Will be synchronous unless both wait parameters are set to false.

Parameters

boolean $waitFlush:

boolean $waitSearcher:

float $timeout Maximum expected duration of the commit operation on the server (otherwise, will throw a communication exception):

Return value

response object

Throws

Exception If an error occurs during the service call

2 methods override DrupalApacheSolrServiceInterface::optimize()
DrupalApacheSolrService::optimize in ./Drupal_Apache_Solr_Service.php
Send an optimize command. Will be synchronous unless both wait parameters are set to false.
DummySolr::optimize in tests/Dummy_Solr.php
Send an optimize command. Will be synchronous unless both wait parameters are set to false.

File

./apachesolr.interface.inc, line 521

Class

DrupalApacheSolrServiceInterface
The interface for all 'Service' objects.

Code

function optimize($waitFlush = true, $waitSearcher = true, $timeout = 3600);