public function index($columns, $name = null, $whereClause = '', $ignoreIfExist = false, $defer = false)
    {
        $name = (is_null($name)) ? $this->getTable() . "_secondary_index" : $name;

        return $this->connection->openBucket($this->getTable())
            ->manager()->createN1qlIndex(
                $name,
                $columns,
                $whereClause,
                $ignoreIfExist,
                $defer
            );
    }