I have text index in MongoDB and want to use text command for searching in my collection. Can't find this functionality in Mongoid.
I have tried to find the solution as I am also a mongoid user. I haven't found anything specific related to search text in mongoid other than where query. After little investigation I have found mongoid_search gem which could be useful for search text.
It has one limitation that is written in very first line of readme is "If your searchable model is big (i.e. 1.000.000+ records), solr or sphinx may suit you better." If you have so you need to configure solr or elasticsearch for better performance. If you are going to deploy on heroku then please develop in that consideration too.
May be this would help you to achieve your goal.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With