Paradox/toolbox/CollectionManager.php
public function createFulltextIndex($collection, $field, $minLength = null)
    {
        if (!is_string($field)) {
            throw new CollectionManagerException("Fulltext indices can currently only index one field.");
        }

        $field = array($field);

        try {
            $result = $this->_toolbox->getCollectionHandler()->createFulltextIndex($collection, $field, $minLength);

            return $this->_toolbox->parseIdForKey($result['id']);
        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new CollectionManagerException($normalised['message'], $normalised['code']);
        }
    }
public function createFulltextIndex($collection, $field, $minLength = null)
    {
        if (!is_string($field)) {
            throw new CollectionManagerException("Fulltext indices can currently only index one field.");
        }

        $field = array($field);

        try {
            $result = $this->_toolbox->getCollectionHandler()->createFulltextIndex($collection, $field, $minLength);

            return $this->_toolbox->parseIdForKey($result['id']);
        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new CollectionManagerException($normalised['message'], $normalised['code']);
        }
    }
Create a fulltext index on a collection.
@param  string                     $collection The name of the collection.
@param  string                     $field      The field to index. Fulltext indices can currently only index one field.
@param  int                        $minLength  The minimum length of words to index.
@link http://www.arangodb.org/manuals/current/IndexFulltextHttp.html
@throws CollectionManagerException
@return int                        Id of the index created.