arangosh> db.example.ensureIndex({ type: "fulltext", fields: [ "text" ], minLength: 3 }); { "fields" : [ "text" ], "id" : "example/17873", "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/17876", "_key" : "17876", "_rev" : "_WnWX-CS--_" } arangosh> db.example.save({ text : "quick brown fox", b : { c : 2 } }); { "_id" : "example/17880", "_key" : "17880", "_rev" : "_WnWX-CS--B" } arangosh> db.example.save({ text : "brown fox jums", b : { c : 3 } }); { "_id" : "example/17883", "_key" : "17883", "_rev" : "_WnWX-CW--_" } arangosh> db.example.save({ text : "fox jumps over", b : { c : 4 } }); { "_id" : "example/17886", "_key" : "17886", "_rev" : "_WnWX-CW--B" } arangosh> db.example.save({ text : "jumps over the", b : { c : 5 } }); { "_id" : "example/17889", "_key" : "17889", "_rev" : "_WnWX-Ca--_" } arangosh> db.example.save({ text : "over the lazy", b : { c : 6 } }); { "_id" : "example/17892", "_key" : "17892", "_rev" : "_WnWX-Ca--B" } arangosh> db.example.save({ text : "the lazy dog", b : { c : 7 } }); { "_id" : "example/17895", "_key" : "17895", "_rev" : "_WnWX-Ca--D" } arangosh> db._query("FOR document IN FULLTEXT(example, 'text', 'the') RETURN document"); [ { "_key" : "17876", "_id" : "example/17876", "_rev" : "_WnWX-CS--_", "text" : "the quick brown", "b" : { "c" : 1 } }, { "_key" : "17889", "_id" : "example/17889", "_rev" : "_WnWX-Ca--_", "text" : "jumps over the", "b" : { "c" : 5 } }, { "_key" : "17892", "_id" : "example/17892", "_rev" : "_WnWX-Ca--B", "text" : "over the lazy", "b" : { "c" : 6 } }, { "_key" : "17895", "_id" : "example/17895", "_rev" : "_WnWX-Ca--D", "text" : "the lazy dog", "b" : { "c" : 7 } } ] [object ArangoQueryCursor, count: 4, cached: false, hasMore: false]