Looking to use $text and $search
I want to be able to search the comment column of my database. Usually there are a few words saved in the string.
I think that $text and $search will work, according to Mongo's docs. I just don't know how to put it together to make it work. I also do not want it to be case sensitive so I would also need $options, 'i' right?
How would I put the three of these together? Or is there a better way of doing it?