arangosh> db.example.ensureIndex({ type: "fulltext", fields: [ "text" ], minLength: 3 }); { "fields" : [ "text" ], "id" : "example/74448", "isNewlyCreated" : true, "minLength" : 3, "name" : "idx_1646382081927806976", "sparse" : true, "type" : "fulltext", "unique" : false, "code" : 201 } arangosh> db.example.save({ text : "the quick brown", b : { c : 1 } }); { "_id" : "example/74452", "_key" : "74452", "_rev" : "_ZXF6dT2--_" } arangosh> db.example.save({ text : "quick brown fox", b : { c : 2 } }); { "_id" : "example/74454", "_key" : "74454", "_rev" : "_ZXF6dT6---" } arangosh> db.example.save({ text : "brown fox jums", b : { c : 3 } }); { "_id" : "example/74456", "_key" : "74456", "_rev" : "_ZXF6dT6--A" } arangosh> db.example.save({ text : "fox jumps over", b : { c : 4 } }); { "_id" : "example/74458", "_key" : "74458", "_rev" : "_ZXF6dT6--C" } arangosh> db.example.save({ text : "jumps over the", b : { c : 5 } }); { "_id" : "example/74460", "_key" : "74460", "_rev" : "_ZXF6dT6--E" } arangosh> db.example.save({ text : "over the lazy", b : { c : 6 } }); { "_id" : "example/74462", "_key" : "74462", "_rev" : "_ZXF6dU----" } arangosh> db.example.save({ text : "the lazy dog", b : { c : 7 } }); { "_id" : "example/74464", "_key" : "74464", "_rev" : "_ZXF6dU---A" } arangosh> db._query("FOR document IN FULLTEXT(example, 'text', 'the') RETURN document"); [ { "_key" : "74452", "_id" : "example/74452", "_rev" : "_ZXF6dT2--_", "text" : "the quick brown", "b" : { "c" : 1 } }, { "_key" : "74460", "_id" : "example/74460", "_rev" : "_ZXF6dT6--E", "text" : "jumps over the", "b" : { "c" : 5 } }, { "_key" : "74462", "_id" : "example/74462", "_rev" : "_ZXF6dU----", "text" : "over the lazy", "b" : { "c" : 6 } }, { "_key" : "74464", "_id" : "example/74464", "_rev" : "_ZXF6dU---A", "text" : "the lazy dog", "b" : { "c" : 7 } } ] [object ArangoQueryCursor, count: 4, cached: false, hasMore: false]