public function createOptimizeXml($waitFlush = true, $waitSearcher = true)
	{
		$searcherValue = $waitSearcher ? 'true' : 'false';

		$rawPost = '<optimize waitSearcher="' . $searcherValue . '" />';

		return $rawPost;
	}
public function createOptimizeXml($waitFlush = true, $waitSearcher = true)
	{
		$searcherValue = $waitSearcher ? 'true' : 'false';

		$rawPost = '<optimize waitSearcher="' . $searcherValue . '" />';

		return $rawPost;
	}
public function createOptimizeXml ( $ waitFlush = true , $ waitSearcher = true ) { $ searcherValue = $ waitSearcher ? 'true' : 'false' ; $ rawPost = '<optimize waitSearcher="' . $ searcherValue . '" />' ; return $ rawPost ; }
Creates an optimize command XML string.

@param boolean $waitFlush Is ignored.
@param boolean $waitSearcher
@param float $timeout Maximum expected duration of the commit operation on the server (otherwise, will throw a communication exception)
@return string An XML string
Creates an optimize command XML string .