public function createIndex($name, $target, $unique = false, $table = null)
    {
        return $this->db->createIndex($table, $name, $target, $unique)
                        ->execute();
    }
public function createIndex($name, $target, $unique = false, $table = null)
    {
        return $this->db->createIndex($table, $name, $target, $unique)
                        ->execute();
    }
public function createIndex ( $ name , $ target , $ unique = false , $ table = null ) { return $ this -> db -> createIndex ( $ table , $ name , $ target , $ unique ) -> execute ( ) ; }
Creates an INDEX

@param string $name Index name
@param string|array $target Column name or collection of ones
@param boolean $unique Whether it should be unique or not
@param string $table Table name. By default it uses mapper's table
@return boolean
Creates an INDEX