arangosh> db.example.ensureIndex({ type: "fulltext", fields: [ "text" ], minLength: 3 }); { "fields" : [ "text" ], "id" : "example/16043", "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/16046", "_key" : "16046", "_rev" : "_WpTBAVG--_" } arangosh> db.example.save({ text : "quick brown fox", b : { c : 2 } }); { "_id" : "example/16050", "_key" : "16050", "_rev" : "_WpTBAVG--B" } arangosh> db.example.save({ text : "brown fox jums", b : { c : 3 } }); { "_id" : "example/16053", "_key" : "16053", "_rev" : "_WpTBAVG--D" } arangosh> db.example.save({ text : "fox jumps over", b : { c : 4 } }); { "_id" : "example/16056", "_key" : "16056", "_rev" : "_WpTBAVG--F" } arangosh> db.example.save({ text : "jumps over the", b : { c : 5 } }); { "_id" : "example/16059", "_key" : "16059", "_rev" : "_WpTBAVK--_" } arangosh> db.example.save({ text : "over the lazy", b : { c : 6 } }); { "_id" : "example/16062", "_key" : "16062", "_rev" : "_WpTBAVK--B" } arangosh> db.example.save({ text : "the lazy dog", b : { c : 7 } }); { "_id" : "example/16065", "_key" : "16065", "_rev" : "_WpTBAVK--D" } arangosh> db._query("FOR document IN FULLTEXT(example, 'text', 'the') RETURN document"); [ { "_key" : "16046", "_id" : "example/16046", "_rev" : "_WpTBAVG--_", "text" : "the quick brown", "b" : { "c" : 1 } }, { "_key" : "16059", "_id" : "example/16059", "_rev" : "_WpTBAVK--_", "text" : "jumps over the", "b" : { "c" : 5 } }, { "_key" : "16062", "_id" : "example/16062", "_rev" : "_WpTBAVK--B", "text" : "over the lazy", "b" : { "c" : 6 } }, { "_key" : "16065", "_id" : "example/16065", "_rev" : "_WpTBAVK--D", "text" : "the lazy dog", "b" : { "c" : 7 } } ] [object ArangoQueryCursor, count: 4, cached: false, hasMore: false]