public static function flush() { self::$client = NULL; self::$index = NULL; self::$types = array(); self::$mappings = array(); }