Example #1
0
 public function testThrowsExceptionWhenNoIndexAndNoCreate()
 {
     try {
         Zym_Search_Lucene_Index::factory('test', true, false);
     } catch (Exception $e) {
         $this->assertType('Zym_Search_Lucene_Exception', $e);
         $this->assertContains('does not exists', $e->getMessage());
     }
 }
Example #2
0
 /**
  * Set the result cache
  *
  * @param Zend_Cache_Core $cache
  */
 public static function setResultCache(Zend_Cache_Core $cache)
 {
     self::$_resultCache = $cache;
 }
Example #3
0
 /**
  * Set the default resultset limit
  * 
  * @param int $limit
  */
 public static function setDefaultResultSetLimit($limit)
 {
     self::$_defaultResultSetLimit = (int) $limit;
 }