db.movies.aggregate([ { $search: { index: "default", text: { query: "star wars", path: "title" }, }, }, { $project: { title: 1, year: 1, } } ])