简体   繁体   English

Websolr,solr搜索,Heroku和黑子[Ruby on Rails]

[英]Websolr, solr search, Heroku, and sunspot [Ruby on Rails]

So I have a question. 所以我有一个问题。 I am currently on my development machine using the Sunspot gem for searching through my Rails applications records which is really nice since it does full text searching through articles (which is a feature I really want), but the bad thing is that my app is hosted on Heroku which requires the websolr addon to get the solr server to work with their system which costs $20/month. 我目前正在使用Sunspot gem在开发机器上搜索我的Rails应用程序记录,这非常好,因为它可以对文章进行全文搜索(这是我真正想要的功能),但是不好的是,我的应用程序是托管的在Heroku上,它需要websolr插件才能使solr服务器与他们的系统一起使用,每月费用为20美元。 I, being the super broke college student that I am, am now looking for a workaround to this hosting cost. 作为我的超级大学生,我现在正在寻找一种解决此托管费用的方法。 Does anyone know of any? 有人知道吗? I know Solr is just a server, so I could potentially host it somewhere else and just run my solr instance through that host but I don't really know how to do that (and how to integrate it with Heroku). 我知道Solr只是一台服务器,因此我可以将其托管在其他地方,并仅通过该主机运行solr实例,但是我真的不知道如何做到这一点(以及如何将其与Heroku集成)。 Has anyone got any experience with this? 有人对此有任何经验吗? If this seems to difficult, does anyone have alternative full text searching options with Heroku (that are free/cheap)? 如果这似乎很难,那么是否有人可以使用Heroku(免费/便宜)来替代全文搜索选项?

Thanks in advance! 提前致谢!

You can spin up a machine on Amazon EC2 and install solr on it. 您可以在Amazon EC2上启动机器并在其上安装solr。 It starts somewhere around $10 / month. 它的起价约为每月10美元。 Just make sure to use the same datacenter as Heroku, which I believe is the east coast one. 只需确保使用与Heroku相同的数据中心,我相信这是东海岸。

Heroku has a guide on available full-text search options and it includes a how-to running your own Solr server . Heroku提供了有关可用全文本搜索选项指南 ,其中包括如何运行自己的Solr服务器的方法

Amazon Web Services has a free usage tier so that option should not cost you anything, at least not for the first year. Amazon Web Services具有免费使用层,因此该选项至少在第一年内不会花费您任何费用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM