arangosh> db.example.ensureIndex({ type: "fulltext", fields: [ "text" ], minLength: 3 }); { "fields" : [ "text" ], "id" : "example/16211", "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/16214", "_key" : "16214", "_rev" : "_W0jzATy---" } arangosh> db.example.save({ text : "quick brown fox", b : { c : 2 } }); { "_id" : "example/16218", "_key" : "16218", "_rev" : "_W0jzATy--A" } arangosh> db.example.save({ text : "brown fox jums", b : { c : 3 } }); { "_id" : "example/16221", "_key" : "16221", "_rev" : "_W0jzATy--C" } arangosh> db.example.save({ text : "fox jumps over", b : { c : 4 } }); { "_id" : "example/16224", "_key" : "16224", "_rev" : "_W0jzAT2--_" } arangosh> db.example.save({ text : "jumps over the", b : { c : 5 } }); { "_id" : "example/16227", "_key" : "16227", "_rev" : "_W0jzAT2--B" } arangosh> db.example.save({ text : "over the lazy", b : { c : 6 } }); { "_id" : "example/16230", "_key" : "16230", "_rev" : "_W0jzAT2--D" } arangosh> db.example.save({ text : "the lazy dog", b : { c : 7 } }); { "_id" : "example/16233", "_key" : "16233", "_rev" : "_W0jzAT2--F" } arangosh> db._query("FOR document IN FULLTEXT(example, 'text', 'the') RETURN document"); [ { "_key" : "16214", "_id" : "example/16214", "_rev" : "_W0jzATy---", "text" : "the quick brown", "b" : { "c" : 1 } }, { "_key" : "16227", "_id" : "example/16227", "_rev" : "_W0jzAT2--B", "text" : "jumps over the", "b" : { "c" : 5 } }, { "_key" : "16230", "_id" : "example/16230", "_rev" : "_W0jzAT2--D", "text" : "over the lazy", "b" : { "c" : 6 } }, { "_key" : "16233", "_id" : "example/16233", "_rev" : "_W0jzAT2--F", "text" : "the lazy dog", "b" : { "c" : 7 } } ] [object ArangoQueryCursor, count: 4, cached: false, hasMore: false]