Fulltext indexes

    A fulltext index can be used to find words, or prefixes of words inside documents.

    A fulltext index can be defined on one attribute only, and will include all words contained indocuments that have a textual value in the index attribute. Since ArangoDB 2.6 the indexwill also include words from the index attribute if the index attribute is an array ofstrings, or an object with string value members.

    For example, given a fulltext index on the attribute and the followingdocuments, then searching for лиса using the fulltext index would return only thefirst document. Searching for the index for the exact string would return the firsttwo documents, and searching for prefix:Fox would return all three documents:

    Note that deeper nested objects are ignored. For example, a fulltext index ontranslations would index Fuchs, but not fox, given the following documentstructure:

    If you need to search across multiple fields and/or nested objects, you may writeall the strings into a special attribute, which you then create the index on(it might be necessary to clean the strings first, e.g. remove line breaks andstrip certain words).

    Ensures that a fulltext index exists:

    Creates a fulltext index on all documents on attribute field.

    Fulltext indexes are implicitly sparse: all documents which do not havethe specified field attribute or that have a non-qualifying value in theirfield attribute will be ignored for indexing.

    Only a single attribute can be indexed. Specifying multiple attributes isunsupported.

    In case that the index was successfully created, an object with the indexdetails is returned.

    Show execution results

    Hide execution results

    Looks up a fulltext index:

    collection.lookupFulltextIndex(attribute, minLength)

    Fulltext AQL functions are detailed in .