arangosh> db.example.ensureFulltextIndex("text"); { "id" : "example/22923567", "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/23447855", "_rev" : "23447855", "_key" : "23447855" } arangosh> db.example.save({ text : "quick brown fox", b : { c : 2 } }); { "_id" : "example/23644463", "_rev" : "23644463", "_key" : "23644463" } arangosh> db.example.save({ text : "brown fox jums", b : { c : 3 } }); { "_id" : "example/23841071", "_rev" : "23841071", "_key" : "23841071" } arangosh> db.example.save({ text : "fox jumps over", b : { c : 4 } }); { "_id" : "example/24037679", "_rev" : "24037679", "_key" : "24037679" } arangosh> db.example.save({ text : "jumps over the", b : { c : 5 } }); { "_id" : "example/24234287", "_rev" : "24234287", "_key" : "24234287" } arangosh> db.example.save({ text : "over the lazy", b : { c : 6 } }); { "_id" : "example/24430895", "_rev" : "24430895", "_key" : "24430895" } arangosh> db.example.save({ text : "the lazy dog", b : { c : 7 } }); { "_id" : "example/24627503", "_rev" : "24627503", "_key" : "24627503" } arangosh> db._query("FOR document IN FULLTEXT(example, 'text', 'the') RETURN document"); [ { "_id" : "example/23447855", "_key" : "23447855", "_rev" : "23447855", "b" : { "c" : 1 }, "text" : "the quick brown" }, { "_id" : "example/24234287", "_key" : "24234287", "_rev" : "24234287", "b" : { "c" : 5 }, "text" : "jumps over the" }, { "_id" : "example/24430895", "_key" : "24430895", "_rev" : "24430895", "b" : { "c" : 6 }, "text" : "over the lazy" }, { "_id" : "example/24627503", "_key" : "24627503", "_rev" : "24627503", "b" : { "c" : 7 }, "text" : "the lazy dog" } ] [object ArangoQueryCursor, count: 4, hasMore: false]