1
0
Fork 0

Add example howto use FULLTEXT as an expression to FOR

This commit is contained in:
Willi Goesgens 2015-03-02 16:00:45 +01:00
parent 47d39bc005
commit b98665bbdd
1 changed files with 6 additions and 1 deletions

View File

@ -51,4 +51,9 @@ AQL offers the following functions to filter data based on [fulltext indexes](..
**Note**: the *FULLTEXT* function requires the collection *collection* to have a
fulltext index on *attribute*. If no fulltext index is available, this function
will fail with an error.
will fail with an error. *FULLTEXT* is not meant to be used as an argument to *FILTER*
but rather to be used as the expression of the *FOR* statement:
FOR oneMail IN
FULLTEXT(emails, "body", "banana,-apple")
RETURN oneMail._id;