public function createFulltextIndex($collectionId, array $fields, $minLength = null)
    {
        $indexOptions = [];

        if ($minLength) {
            $indexOptions[self::OPTION_MIN_LENGTH] = $minLength;
        }

        return $this->index($collectionId, self::OPTION_FULLTEXT_INDEX, $fields, null, $indexOptions);
    }
public function createFulltextIndex($collectionId, array $fields, $minLength = null)
    {
        $indexOptions = [];

        if ($minLength) {
            $indexOptions[self::OPTION_MIN_LENGTH] = $minLength;
        }

        return $this->index($collectionId, self::OPTION_FULLTEXT_INDEX, $fields, null, $indexOptions);
    }
public function createFulltextIndex ( $ collectionId , array $ fields , $ minLength = null ) { $ indexOptions = [ ] ; if ( $ minLength ) { $ indexOptions [ self :: OPTION_MIN_LENGTH ] = $ minLength ; } return $ this -> index ( $ collectionId , self :: OPTION_FULLTEXT_INDEX , $ fields , null , $ indexOptions ) ; }
Create a fulltext index

@param string $collectionId - the collection id
@param array  $fields       - an array of fields
@param int    $minLength    - the minimum length of words to index

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

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