How do I search for text in MongoDB?
How do I search for text in MongoDB? Use the $text query operator to perform text searches on a collection with a text index. $text will tokenize the search string using whitespace and most punctuation as delimiters, and perform a logical OR of all such tokens in the search string. Read more…