arangosh> db.example.ensureIndex({ type: "fulltext", fields: [ "text" ], minLength: 3 }); { "id" : "example/15059", "type" : "fulltext", "fields" : [ "text" ], "unique" : false, "sparse" : true, "minLength" : 3, "isNewlyCreated" : true, "code" : 201 } arangosh> db.example.save({ text : "the quick brown", b : { c : 1 } }); { "_id" : "example/15062", "_key" : "15062", "_rev" : "_U-_q2rG---" } arangosh> db.example.save({ text : "quick brown fox", b : { c : 2 } }); { "_id" : "example/15066", "_key" : "15066", "_rev" : "_U-_q2rG--_" } arangosh> db.example.save({ text : "brown fox jums", b : { c : 3 } }); { "_id" : "example/15069", "_key" : "15069", "_rev" : "_U-_q2rK---" } arangosh> db.example.save({ text : "fox jumps over", b : { c : 4 } }); { "_id" : "example/15072", "_key" : "15072", "_rev" : "_U-_q2rK--_" } arangosh> db.example.save({ text : "jumps over the", b : { c : 5 } }); { "_id" : "example/15075", "_key" : "15075", "_rev" : "_U-_q2rK--A" } arangosh> db.example.save({ text : "over the lazy", b : { c : 6 } }); { "_id" : "example/15078", "_key" : "15078", "_rev" : "_U-_q2rO---" } arangosh> db.example.save({ text : "the lazy dog", b : { c : 7 } }); { "_id" : "example/15081", "_key" : "15081", "_rev" : "_U-_q2rO--_" } arangosh> db._query("FOR document IN FULLTEXT(example, 'text', 'the') RETURN document"); [ { "_key" : "15062", "_id" : "example/15062", "_rev" : "_U-_q2rG---", "b" : { "c" : 1 }, "text" : "the quick brown" }, { "_key" : "15075", "_id" : "example/15075", "_rev" : "_U-_q2rK--A", "b" : { "c" : 5 }, "text" : "jumps over the" }, { "_key" : "15078", "_id" : "example/15078", "_rev" : "_U-_q2rO---", "b" : { "c" : 6 }, "text" : "over the lazy" }, { "_key" : "15081", "_id" : "example/15081", "_rev" : "_U-_q2rO--_", "b" : { "c" : 7 }, "text" : "the lazy dog" } ] [object ArangoQueryCursor, count: 4, hasMore: false]