You are here

function DummySolr::commit in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 tests/Dummy_Solr.php \DummySolr::commit()
  2. 7 tests/Dummy_Solr.php \DummySolr::commit()

Send a commit command. Will be synchronous unless both wait parameters are set to false.

Parameters

boolean $optimize Defaults to true:

boolean $waitFlush Defaults to true:

boolean $waitSearcher Defaults to true:

float $timeout Maximum expected duration (in seconds) of the commit operation on the server (otherwise, will throw a communication exception). Defaults to 1 hour:

boolean $softCommit optimize by using a softCommit:

Return value

response object

Throws

Exception If an error occurs during the service call

Overrides DrupalApacheSolrServiceInterface::commit

File

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

Class

DummySolr
@file Dummy object to simulate a Solr Service

Code

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