Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best search option for a heroku-hosted Rails app?

I've been working on a new project lately where a fantastic search engine is crucial. It's a rails3 app hosted on heroku and I'm looking into possible solutions(a rubygem would be ideal) which offer a easy way to have powerful full-text search.

Right now, I'm using acts_as_tsearch which leverages PostgreSQL and performs a basic MATCH query. Though, it's not really pulling back good results(for example, if I search for "create a project" and "how do i create a project" exists as a query, it doesn't find it).

Can anyone share their experiences with full text search, anyone tried out Solr ?

like image 604
Emil Hajric Avatar asked Feb 06 '11 16:02

Emil Hajric


People also ask

What is heroku in Ruby on Rails?

Deploy Ruby on Rails API on Heroku Heroku is a platform that enables developers to build, run, and operate applications entirely on the cloud with multi-language support for Ruby, Go, Scala, PHP, etc. Ruby on Rails is a popular web framework written in Ruby. This guide covers how to deploy Rails 6 apps to Heroku.


2 Answers

IndexTank is your best bet. They were recently added as a Heroku add-on.

We recently tried to just run our own search for our Heroku app and it's just not worth it because you have to worry about stability and scaling of that search box. It's better to go with a provider, like IndexTank.

IndexTank also powers Reddit and Wordpress.com, so can bet it'll be reliable.

like image 80
Idris Mokhtarzada Avatar answered Nov 05 '22 22:11

Idris Mokhtarzada


SOLR works very nicely -- it's a bit pricey to get starts ($20 a month), but it just works, and works well.

They recently added the ability to ask the user "Did you mean to search for [correct spelling]".

You can easily cross-model search (search for Users and Cars and Dealerships).

like image 45
Jesse Wolgamott Avatar answered Nov 06 '22 00:11

Jesse Wolgamott