arangosh> db.example.ensureIndex({ type: "fulltext", fields: [ "text" ], minLength: 3 }); { "fields" : [ "text" ], "id" : "example/16178", "isNewlyCreated" : true, "minLength" : 3, "sparse" : true, "type" : "fulltext", "unique" : false, "code" : 201 } arangosh> db.example.save({ text : "the quick brown", b : { c : 1 } }); { "_id" : "example/16181", "_key" : "16181", "_rev" : "_XiAwU4q--_" } arangosh> db.example.save({ text : "quick brown fox", b : { c : 2 } }); { "_id" : "example/16185", "_key" : "16185", "_rev" : "_XiAwU4q--B" } arangosh> db.example.save({ text : "brown fox jums", b : { c : 3 } }); { "_id" : "example/16188", "_key" : "16188", "_rev" : "_XiAwU4q--D" } arangosh> db.example.save({ text : "fox jumps over", b : { c : 4 } }); { "_id" : "example/16191", "_key" : "16191", "_rev" : "_XiAwU4u--_" } arangosh> db.example.save({ text : "jumps over the", b : { c : 5 } }); { "_id" : "example/16194", "_key" : "16194", "_rev" : "_XiAwU4u--B" } arangosh> db.example.save({ text : "over the lazy", b : { c : 6 } }); { "_id" : "example/16197", "_key" : "16197", "_rev" : "_XiAwU4u--D" } arangosh> db.example.save({ text : "the lazy dog", b : { c : 7 } }); { "_id" : "example/16200", "_key" : "16200", "_rev" : "_XiAwU4u--F" } arangosh> db._query("FOR document IN FULLTEXT(example, 'text', 'the') RETURN document"); [ { "_key" : "16181", "_id" : "example/16181", "_rev" : "_XiAwU4q--_", "text" : "the quick brown", "b" : { "c" : 1 } }, { "_key" : "16194", "_id" : "example/16194", "_rev" : "_XiAwU4u--B", "text" : "jumps over the", "b" : { "c" : 5 } }, { "_key" : "16197", "_id" : "example/16197", "_rev" : "_XiAwU4u--D", "text" : "over the lazy", "b" : { "c" : 6 } }, { "_key" : "16200", "_id" : "example/16200", "_rev" : "_XiAwU4u--F", "text" : "the lazy dog", "b" : { "c" : 7 } } ] [object ArangoQueryCursor, count: 4, cached: false, hasMore: false]