Text Search
Text indexes support $text.
Example
db.posts.createIndex({ body: "text" })
db.posts.find({ $text: { $search: "mongo" } })Exercise
Text query.
{ : { $search: "x" } }
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.