original_string: public function getMaxBufferedDocs()
      {
          if (count($this->_indices) == 0) {
              include_once 'Zend/Search/Lucene/Exception.php';
              throw new Zend_Search_Lucene_Exception('Indices list is empty');
          }
  
          $maxBufferedDocs = reset($this->_indices)->getMaxBufferedDocs();
  
          foreach ($this->_indices as $index) {
              if ($index->getMaxBufferedDocs() !== $maxBufferedDocs) {
                  include_once 'Zend/Search/Lucene/Exception.php';
                  throw new Zend_Search_Lucene_Exception('Indices have different default search field.');
              }
          }
  
          return $maxBufferedDocs;
      }
code: public function getMaxBufferedDocs()
      {
          if (count($this->_indices) == 0) {
              include_once 'Zend/Search/Lucene/Exception.php';
              throw new Zend_Search_Lucene_Exception('Indices list is empty');
          }
  
          $maxBufferedDocs = reset($this->_indices)->getMaxBufferedDocs();
  
          foreach ($this->_indices as $index) {
              if ($index->getMaxBufferedDocs() !== $maxBufferedDocs) {
                  include_once 'Zend/Search/Lucene/Exception.php';
                  throw new Zend_Search_Lucene_Exception('Indices have different default search field.');
              }
          }
  
          return $maxBufferedDocs;
      }
code_tokens: public function getMaxBufferedDocs ( ) { if ( count ( $ this -> _indices ) == 0 ) { include_once 'Zend/Search/Lucene/Exception.php' ; throw new Zend_Search_Lucene_Exception ( 'Indices list is empty' ) ; } $ maxBufferedDocs = reset ( $ this -> _indices ) -> getMaxBufferedDocs ( ) ; foreach ( $ this -> _indices as $ index ) { if ( $ index -> getMaxBufferedDocs ( ) !== $ maxBufferedDocs ) { include_once 'Zend/Search/Lucene/Exception.php' ; throw new Zend_Search_Lucene_Exception ( 'Indices have different default search field.' ) ; } } return $ maxBufferedDocs ; }
docstring: Retrieve index maxBufferedDocs option
  
  maxBufferedDocs is a minimal number of documents required before
  the buffered in-memory documents are written into a new Segment
  
  Default value is 10
  
  @return integer
  @throws Zend_Search_Lucene_Exception
docstring_tokens: Retrieve index maxBufferedDocs option