search for: searchable_field

Displaying 2 results from an estimated 2 matches for "searchable_field".

2006 Oct 22
1
Rails association and multiple indexes
Hi! If I have two models, Product and Manufacturer, of course Product belongs_to :manufacturer. A search engine would allow a user to look for a product by its name or manufacturer. Is it better to define a method like: def searchable_field "#{name} #{manufacturer.name}" end and add it as indexable field (acts_as_ferret :fields => [''searchable_field''])... Or maybe that it is more advisable to index different fields: Product < ActiveRecord::Base acts_as_ferret :fields => [''n...
2006 Jan 06
6
Help with TextSearch :all and MySQL
Hi, I really need help with making the ''searches_on :all'' in Duane Johnson''s TextSearch work with MySQL (not sure if it works with other db''s). http://wiki.rubyonrails.com/rails/pages/TextSearch I realize that there are other search packages out there. But this particular solution best fits my small needs of searching a small database. I''ve gotten