Searching in Rails

Where is it?

OK, in this article, I am going to discuss how to do search in Rails. Searching can be split into three levels namely

Light: When you just need to search a column in a table who’s length isn’t great or does not have much content. To do that kind of search, you can refer this good video on Railscasts

Moderate: In this category we need to search probably more than one column in a table(s), who’s size is quiet great, like say upto a few tens of megabytes of text data. You can use a plugin called ransack which would accomplish this job.

Heavy: Lets say that our database size is going in gigabytes(s), then you must need a kinda professional search. So there is one, thankfully! And its a free software too. You could use Thinking Sphinx which will scale up almost unlimited amount!

Well if you have implemented any one of the above methods, do tell me how it is.


, ,

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: