Example #1
0
 protected static function index()
 {
     if (self::$index) {
         return self::$index;
     }
     if (!($client = self::client())) {
         return null;
     }
     if (self::$index = new Elastica_Index($client, self::$config['index'])) {
         return self::$index;
     }
     return null;
 }
Example #2
0
 public static function deleteIndex()
 {
     return parent::deleteIndex();
 }