original_string: public function getMergeFactor()
      {
          if (count($this->_indices) == 0) {
              include_once 'Zend/Search/Lucene/Exception.php';
              throw new Zend_Search_Lucene_Exception('Indices list is empty');
          }
  
          $mergeFactor = reset($this->_indices)->getMergeFactor();
  
          foreach ($this->_indices as $index) {
              if ($index->getMergeFactor() !== $mergeFactor) {
                  include_once 'Zend/Search/Lucene/Exception.php';
                  throw new Zend_Search_Lucene_Exception('Indices have different default search field.');
              }
          }
  
          return $mergeFactor;
      }
code: public function getMergeFactor()
      {
          if (count($this->_indices) == 0) {
              include_once 'Zend/Search/Lucene/Exception.php';
              throw new Zend_Search_Lucene_Exception('Indices list is empty');
          }
  
          $mergeFactor = reset($this->_indices)->getMergeFactor();
  
          foreach ($this->_indices as $index) {
              if ($index->getMergeFactor() !== $mergeFactor) {
                  include_once 'Zend/Search/Lucene/Exception.php';
                  throw new Zend_Search_Lucene_Exception('Indices have different default search field.');
              }
          }
  
          return $mergeFactor;
      }
code_tokens: public function getMergeFactor ( ) { if ( count ( $ this -> _indices ) == 0 ) { include_once 'Zend/Search/Lucene/Exception.php' ; throw new Zend_Search_Lucene_Exception ( 'Indices list is empty' ) ; } $ mergeFactor = reset ( $ this -> _indices ) -> getMergeFactor ( ) ; foreach ( $ this -> _indices as $ index ) { if ( $ index -> getMergeFactor ( ) !== $ mergeFactor ) { include_once 'Zend/Search/Lucene/Exception.php' ; throw new Zend_Search_Lucene_Exception ( 'Indices have different default search field.' ) ; } } return $ mergeFactor ; }
docstring: Retrieve index mergeFactor option
  
  mergeFactor determines how often segment indices are merged by addDocument().
  With smaller values, less RAM is used while indexing,
  and searches on unoptimized indices are faster,
  but indexing speed is slower.
  With larger values, more RAM is used during indexing,
  and while searches on unoptimized indices are slower,
  indexing is faster.
  Thus larger values (> 10) are best for batch index creation,
  and smaller values (< 10) for indices that are interactively maintained.
  
  Default value is 10
  
  @return integer
  @throws Zend_Search_Lucene_Exception
docstring_tokens: Retrieve index mergeFactor option