Some time ago I promised to create a small tutorial about live fulltext search. A fulltext search, that gives you results as you type. Ingredients: Ruby on rails ferret gem (gem install ferret) acts_as_ferret gem (gem install acts_as_ferret) auto_complete plugin (from the application root: ruby script/plugin install auto_complete) What we will do Create an empty… Continue reading Live fulltext search in Ruby on Rails
Tag: fulltext
Full text search in Ruby on Rails 3 – ferret
There are several possibilities how to use ferret in RoR. This post will show the easy way – using the acts_as_ferret plugin. To show the syntax and code, I will use the same data objects as in the Full text search in ruby on rails 2 – MySQL Installation Ferret installation is easy gem install… Continue reading Full text search in Ruby on Rails 3 – ferret
Full text search in Ruby on Rails 2 – MySQL
My previous post compared MySQL and ferret full text search engines. For our project, the ferret was the winner. Nevertheless, I will try to show the beauty and simplicity of using MySQL indexes. Create table and indices First of all it is necessary to create table and the corresponding index. Create table articles( id integer… Continue reading Full text search in Ruby on Rails 2 – MySQL