arangosh> db.example.ensureIndex({ type: "fulltext", fields: [ "text" ], minLength: 3 }); { "id" : "example/15238", "type" : "fulltext", "fields" : [ "text" ], "unique" : false, "sparse" : true, "minLength" : 3, "isNewlyCreated" : true, "code" : 201 } arangosh> db.example.save({ text : "the quick brown", b : { c : 1 } }); { "_id" : "example/15241", "_key" : "15241", "_rev" : "_V_qEgQC---" } arangosh> db.example.save({ text : "quick brown fox", b : { c : 2 } }); { "_id" : "example/15245", "_key" : "15245", "_rev" : "_V_qEgQG---" } arangosh> db.example.save({ text : "brown fox jums", b : { c : 3 } }); { "_id" : "example/15248", "_key" : "15248", "_rev" : "_V_qEgQK---" } arangosh> db.example.save({ text : "fox jumps over", b : { c : 4 } }); { "_id" : "example/15251", "_key" : "15251", "_rev" : "_V_qEgQO---" } arangosh> db.example.save({ text : "jumps over the", b : { c : 5 } }); { "_id" : "example/15254", "_key" : "15254", "_rev" : "_V_qEgQO--_" } arangosh> db.example.save({ text : "over the lazy", b : { c : 6 } }); { "_id" : "example/15257", "_key" : "15257", "_rev" : "_V_qEgQS---" } arangosh> db.example.save({ text : "the lazy dog", b : { c : 7 } }); { "_id" : "example/15260", "_key" : "15260", "_rev" : "_V_qEgQW---" } arangosh> db._query("FOR document IN FULLTEXT(example, 'text', 'the') RETURN document"); [ { "_key" : "15241", "_id" : "example/15241", "_rev" : "_V_qEgQC---", "text" : "the quick brown", "b" : { "c" : 1 } }, { "_key" : "15254", "_id" : "example/15254", "_rev" : "_V_qEgQO--_", "text" : "jumps over the", "b" : { "c" : 5 } }, { "_key" : "15257", "_id" : "example/15257", "_rev" : "_V_qEgQS---", "text" : "over the lazy", "b" : { "c" : 6 } }, { "_key" : "15260", "_id" : "example/15260", "_rev" : "_V_qEgQW---", "text" : "the lazy dog", "b" : { "c" : 7 } } ] [object ArangoQueryCursor, count: 4, hasMore: false]