I already have text index in MongoDB.
Simple search:
db.news.find({ $text: { $search: "covid" } })
I get all the articles containing covid in the text.
Now I want to get all the articles that contain both covid and vaccination.
This query for example...
db.news.find({ $text: { $search: "\"covid vaccination\"" } })
...will only find articles that contain "covid vaccination" side by side, in that order. In other words, article structured like this: "Vaccination against covid..." will not be found.
I want to find all articles where covid and vaccination are included in the article, regardless of each word position, using the text index. Any ideas?