arangosh> db.example.ensureIndex({ type: "fulltext", fields: [ "text" ], minLength: 3 }); { "fields" : [ "text" ], "id" : "example/16197", "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/16200", "_key" : "16200", "_rev" : "_XG3zISq--_" } arangosh> db.example.save({ text : "quick brown fox", b : { c : 2 } }); { "_id" : "example/16204", "_key" : "16204", "_rev" : "_XG3zISq--B" } arangosh> db.example.save({ text : "brown fox jums", b : { c : 3 } }); { "_id" : "example/16207", "_key" : "16207", "_rev" : "_XG3zISq--D" } arangosh> db.example.save({ text : "fox jumps over", b : { c : 4 } }); { "_id" : "example/16210", "_key" : "16210", "_rev" : "_XG3zISu--_" } arangosh> db.example.save({ text : "jumps over the", b : { c : 5 } }); { "_id" : "example/16213", "_key" : "16213", "_rev" : "_XG3zISu--B" } arangosh> db.example.save({ text : "over the lazy", b : { c : 6 } }); { "_id" : "example/16216", "_key" : "16216", "_rev" : "_XG3zISu--D" } arangosh> db.example.save({ text : "the lazy dog", b : { c : 7 } }); { "_id" : "example/16219", "_key" : "16219", "_rev" : "_XG3zISy--_" } arangosh> db._query("FOR document IN FULLTEXT(example, 'text', 'the') RETURN document"); [ { "_key" : "16200", "_id" : "example/16200", "_rev" : "_XG3zISq--_", "text" : "the quick brown", "b" : { "c" : 1 } }, { "_key" : "16213", "_id" : "example/16213", "_rev" : "_XG3zISu--B", "text" : "jumps over the", "b" : { "c" : 5 } }, { "_key" : "16216", "_id" : "example/16216", "_rev" : "_XG3zISu--D", "text" : "over the lazy", "b" : { "c" : 6 } }, { "_key" : "16219", "_id" : "example/16219", "_rev" : "_XG3zISy--_", "text" : "the lazy dog", "b" : { "c" : 7 } } ] [object ArangoQueryCursor, count: 4, cached: false, hasMore: false]