arangosh> db.example.ensureIndex({ type: "fulltext", fields: [ "text" ], minLength: 3 }); { "id" : "example/1147935442", "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/1148459730", "_rev" : "1148459730", "_key" : "1148459730" } arangosh> db.example.save({ text : "quick brown fox", b : { c : 2 } }); { "_id" : "example/1148656338", "_rev" : "1148656338", "_key" : "1148656338" } arangosh> db.example.save({ text : "brown fox jums", b : { c : 3 } }); { "_id" : "example/1148852946", "_rev" : "1148852946", "_key" : "1148852946" } arangosh> db.example.save({ text : "fox jumps over", b : { c : 4 } }); { "_id" : "example/1149049554", "_rev" : "1149049554", "_key" : "1149049554" } arangosh> db.example.save({ text : "jumps over the", b : { c : 5 } }); { "_id" : "example/1149246162", "_rev" : "1149246162", "_key" : "1149246162" } arangosh> db.example.save({ text : "over the lazy", b : { c : 6 } }); { "_id" : "example/1149442770", "_rev" : "1149442770", "_key" : "1149442770" } arangosh> db.example.save({ text : "the lazy dog", b : { c : 7 } }); { "_id" : "example/1149639378", "_rev" : "1149639378", "_key" : "1149639378" } arangosh> db._query("FOR document IN FULLTEXT(example, 'text', 'the') RETURN document"); [ { "b" : { "c" : 1 }, "text" : "the quick brown", "_id" : "example/1148459730", "_rev" : "1148459730", "_key" : "1148459730" }, { "b" : { "c" : 5 }, "text" : "jumps over the", "_id" : "example/1149246162", "_rev" : "1149246162", "_key" : "1149246162" }, { "b" : { "c" : 6 }, "text" : "over the lazy", "_id" : "example/1149442770", "_rev" : "1149442770", "_key" : "1149442770" }, { "b" : { "c" : 7 }, "text" : "the lazy dog", "_id" : "example/1149639378", "_rev" : "1149639378", "_key" : "1149639378" } ] [object ArangoQueryCursor, count: 4, hasMore: false]