original_string: public static function getResultSetLimit()
      {
          if (count($this->_indices) == 0) {
              include_once 'Zend/Search/Lucene/Exception.php';
              throw new Zend_Search_Lucene_Exception('Indices list is empty');
          }
  
          $defaultResultSetLimit = reset($this->_indices)->getResultSetLimit();
  
          foreach ($this->_indices as $index) {
              if ($index->getResultSetLimit() !== $defaultResultSetLimit) {
                  include_once 'Zend/Search/Lucene/Exception.php';
                  throw new Zend_Search_Lucene_Exception('Indices have different default search field.');
              }
          }
  
          return $defaultResultSetLimit;
      }
code: public static function getResultSetLimit()
      {
          if (count($this->_indices) == 0) {
              include_once 'Zend/Search/Lucene/Exception.php';
              throw new Zend_Search_Lucene_Exception('Indices list is empty');
          }
  
          $defaultResultSetLimit = reset($this->_indices)->getResultSetLimit();
  
          foreach ($this->_indices as $index) {
              if ($index->getResultSetLimit() !== $defaultResultSetLimit) {
                  include_once 'Zend/Search/Lucene/Exception.php';
                  throw new Zend_Search_Lucene_Exception('Indices have different default search field.');
              }
          }
  
          return $defaultResultSetLimit;
      }
code_tokens: public static function getResultSetLimit ( ) { if ( count ( $ this -> _indices ) == 0 ) { include_once 'Zend/Search/Lucene/Exception.php' ; throw new Zend_Search_Lucene_Exception ( 'Indices list is empty' ) ; } $ defaultResultSetLimit = reset ( $ this -> _indices ) -> getResultSetLimit ( ) ; foreach ( $ this -> _indices as $ index ) { if ( $ index -> getResultSetLimit ( ) !== $ defaultResultSetLimit ) { include_once 'Zend/Search/Lucene/Exception.php' ; throw new Zend_Search_Lucene_Exception ( 'Indices have different default search field.' ) ; } } return $ defaultResultSetLimit ; }
docstring: Set result set limit.
  
  0 means no limit
  
  @return integer
  @throws Zend_Search_Lucene_Exception
docstring_tokens: Set result set limit .