public function initBufferAdd($overwrite = null, $commitWithin = null, $buffer = null)
	{
		if (!isset($this->bufferAdd))
		{
			$this->bufferAdd = $this->connection->getPlugin('bufferedadd');
			$this->commitWithin = $commitWithin;
			$this->overwrite = $overwrite;

			// When Solarium updates with the ability to preset commitWithin and Overwrite, 
			// 	this buffer increase won't be necessary.
			// This prevents the automatically flushing in the event there are more records than the batch size, 
			// since the automatically flushing doesn't set the commitWithin or overwrite values 
			// for the records flushed.

			$buffer++;
			$this->bufferAdd->setBufferSize($buffer);
		}
		return $this->bufferAdd;
	}
public function initBufferAdd($overwrite = null, $commitWithin = null, $buffer = null)
	{
		if (!isset($this->bufferAdd))
		{
			$this->bufferAdd = $this->connection->getPlugin('bufferedadd');
			$this->commitWithin = $commitWithin;
			$this->overwrite = $overwrite;

			// When Solarium updates with the ability to preset commitWithin and Overwrite, 
			// 	this buffer increase won't be necessary.
			// This prevents the automatically flushing in the event there are more records than the batch size, 
			// since the automatically flushing doesn't set the commitWithin or overwrite values 
			// for the records flushed.

			$buffer++;
			$this->bufferAdd->setBufferSize($buffer);
		}
		return $this->bufferAdd;
	}
public function initBufferAdd ( $ overwrite = null , $ commitWithin = null , $ buffer = null ) { if ( ! isset ( $ this -> bufferAdd ) ) { $ this -> bufferAdd = $ this -> connection -> getPlugin ( 'bufferedadd' ) ; $ this -> commitWithin = $ commitWithin ; $ this -> overwrite = $ overwrite ; // When Solarium updates with the ability to preset commitWithin and Overwrite,  // 	this buffer increase won't be necessary. // This prevents the automatically flushing in the event there are more records than the batch size,  // since the automatically flushing doesn't set the commitWithin or overwrite values  // for the records flushed. $ buffer ++ ; $ this -> bufferAdd -> setBufferSize ( $ buffer ) ; } return $ this -> bufferAdd ; }
Initialize Solarium bufferAdd plugin
@param boolean $overwrite if true, overwrites existing entries with the same docId
@param int $commitWithin time in milliseconds that a commit should happen
@param int $buffer max number of documents to add before flushing
@return Solarium\Plugin\BufferAdd\BufferAdd
Initialize Solarium bufferAdd plugin