Ticket: Text and Subfield Search : make sure the text index exists!

I’ve just gone through this ticket and encountered an unexpected error : textSearchQuery didn’t work, even though it was already implemented and was supposed to be good.
After a bit of search, I found that this was because I was missing the text index on the movies collection because I used mongoexport/import instead of mongodump which does copy the indexes.

In case you’re missing it as well, here’s the one I made
mongo-text-index

1 Like