function DummySolr::optimize in Apache Solr Search 6.3
Same name and namespace in other branches
- 8 tests/Dummy_Solr.php \DummySolr::optimize()
- 7 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):
Return value
response object
Throws
Exception If an error occurs during the service call
Overrides DrupalApacheSolrServiceInterface::optimize
File
- tests/
Dummy_Solr.php, line 435 - 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) {
}