public function createSkipListIndex($collectionId, array $fields, $unique = null, $sparse = null)
    {
        $indexOptions = [];

        if ($unique) {
            $indexOptions[self::OPTION_UNIQUE] = (bool) $unique;
        }
        if ($sparse) {
            $indexOptions[self::OPTION_SPARSE] = (bool) $sparse;
        }

        return $this->index($collectionId, self::OPTION_SKIPLIST_INDEX, $fields, null, $indexOptions);
    }
public function createSkipListIndex($collectionId, array $fields, $unique = null, $sparse = null)
    {
        $indexOptions = [];

        if ($unique) {
            $indexOptions[self::OPTION_UNIQUE] = (bool) $unique;
        }
        if ($sparse) {
            $indexOptions[self::OPTION_SPARSE] = (bool) $sparse;
        }

        return $this->index($collectionId, self::OPTION_SKIPLIST_INDEX, $fields, null, $indexOptions);
    }
public function createSkipListIndex ( $ collectionId , array $ fields , $ unique = null , $ sparse = null ) { $ indexOptions = [ ] ; if ( $ unique ) { $ indexOptions [ self :: OPTION_UNIQUE ] = ( bool ) $ unique ; } if ( $ sparse ) { $ indexOptions [ self :: OPTION_SPARSE ] = ( bool ) $ sparse ; } return $ this -> index ( $ collectionId , self :: OPTION_SKIPLIST_INDEX , $ fields , null , $ indexOptions ) ; }
Create a skip-list index

@param string $collectionId - the collection id
@param array  $fields       - an array of fields
@param bool   $unique       - whether the index is unique or not
@param bool   $sparse       - whether the index should be sparse

@link https://docs.arangodb.com/HTTP/Indexes/Skiplist.html

@return array - server response of the created index
@throws \ArangoDBClient\Exception
Create a skip - list index