From b98665bbdd2d72629e7439fc655756c01bc1f4ad Mon Sep 17 00:00:00 2001 From: Willi Goesgens Date: Mon, 2 Mar 2015 16:00:45 +0100 Subject: [PATCH] Add example howto use FULLTEXT as an expression to FOR --- Documentation/Books/Users/Aql/FulltextFunctions.mdpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/Books/Users/Aql/FulltextFunctions.mdpp b/Documentation/Books/Users/Aql/FulltextFunctions.mdpp index 5b5087a710..d0ace848c9 100644 --- a/Documentation/Books/Users/Aql/FulltextFunctions.mdpp +++ b/Documentation/Books/Users/Aql/FulltextFunctions.mdpp @@ -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. \ No newline at end of file +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;