arangosh> db.example.ensureFulltextIndex("text"); { "id" : "example/1110694343", "type" : "fulltext", "fields" : [ "text" ], "unique" : false, "sparse" : true, "minLength" : 2, "isNewlyCreated" : true, "code" : 201 } arangosh> db.example.save({ text : "the quick brown", b : { c : 1 } }); { "_id" : "example/1111218631", "_rev" : "1111218631", "_key" : "1111218631" } arangosh> db.example.save({ text : "quick brown fox", b : { c : 2 } }); { "_id" : "example/1111415239", "_rev" : "1111415239", "_key" : "1111415239" } arangosh> db.example.save({ text : "brown fox jums", b : { c : 3 } }); { "_id" : "example/1111611847", "_rev" : "1111611847", "_key" : "1111611847" } arangosh> db.example.save({ text : "fox jumps over", b : { c : 4 } }); { "_id" : "example/1111808455", "_rev" : "1111808455", "_key" : "1111808455" } arangosh> db.example.save({ text : "jumps over the", b : { c : 5 } }); { "_id" : "example/1112005063", "_rev" : "1112005063", "_key" : "1112005063" } arangosh> db.example.save({ text : "over the lazy", b : { c : 6 } }); { "_id" : "example/1112201671", "_rev" : "1112201671", "_key" : "1112201671" } arangosh> db.example.save({ text : "the lazy dog", b : { c : 7 } }); { "_id" : "example/1112398279", "_rev" : "1112398279", "_key" : "1112398279" } arangosh> db._query("FOR document IN FULLTEXT(example, 'text', 'the') RETURN document"); [ { "_id" : "example/1111218631", "_key" : "1111218631", "_rev" : "1111218631", "b" : { "c" : 1 }, "text" : "the quick brown" }, { "_id" : "example/1112005063", "_key" : "1112005063", "_rev" : "1112005063", "b" : { "c" : 5 }, "text" : "jumps over the" }, { "_id" : "example/1112201671", "_key" : "1112201671", "_rev" : "1112201671", "b" : { "c" : 6 }, "text" : "over the lazy" }, { "_id" : "example/1112398279", "_key" : "1112398279", "_rev" : "1112398279", "b" : { "c" : 7 }, "text" : "the lazy dog" } ] [object ArangoQueryCursor, count: 4, hasMore: false]