You are here

function DummySolr::optimize in Apache Solr Search 7

Same name and namespace in other branches
  1. 8 tests/Dummy_Solr.php \DummySolr::optimize()
  2. 6.3 tests/Dummy_Solr.php \DummySolr::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):

boolean $softCommit optimize by using a softCommit:

Return value

response object

Throws

Exception If an error occurs during the service call

Overrides DrupalApacheSolrServiceInterface::optimize

File

tests/Dummy_Solr.php, line 437
Dummy object to simulate a Solr Service

Class

DummySolr
@file Dummy object to simulate a Solr Service

Code

function optimize($waitFlush = TRUE, $waitSearcher = TRUE, $timeout = 3600, $softCommit = FALSE) {
}