Tips Needed for Full-Text Mangoid Search

I have a mongoid built-in one of many models on Rails 3.1, in full-text search inside. I create something very easy and easy to deploy on heroics too, without having to pay for add-ons, initially.

Currently, Heroku’s full-text search box appears to have only planned plans (which should not be started with), see Flying Sphinx and Websolr.

I need to advise on a good solution (a ruby ​​stone deployed to a hero) to start with and how to scale for other cloud services.

+4
source share
2 answers

Perhaps the main features of MongoDB are enough for your needs: http://www.mongodb.org/display/DOCS/Full+Text+Search+in+Mongo

There are two more possibilities that come to my mind:

1) you can use this gem: https://github.com/mauriciozaffari/mongoid_search

2) you can use elasticsearch ( http://www.elasticsearch.org/ ) and use the following stone: https://github.com/karmi/tire

However, you could not use this solution only with the help of the hero, you would need to set up your own server, for which, if you want to use the hero, EC2 is recommended

+5
source

We used the sunspot_mongo stone with solr on Mongoid 2.4.

But after switching to Mongoid 3, sunspot support does not seem to exist. So, we are exploring the transition to elasticsearch with a tire gem. There are several new suggestions in the “search as a service space” for elasticsearch search, but they do not yet look quite ready for production, so we hope that this will change quickly.

Hope this helps!

+1
source

Source: https://habr.com/ru/post/1391111/


All Articles