I have spent a couple hours researching the FerretOnRails and
plugin, and am very pleased with what I see so far.
My question is how to have my application, with multiple models:
With all varying :string and :text column types, to be able to use a
index by which I can produce a search on.
I will go through each of the models and add a acts_as_ferret :fields =>
[‘text_field’, ‘string_field’, ‘etc’] for each of the models so they are
indexed. But as far as storing the data in a way so that I can query it
a single action like ActiveRecord::find_by_content(‘search query test’),
would work great. I even seen a reference to the previous post, but
yet figured out how to use this.
I read about the Typo integration, that has a Content model, which all
data models (Page, Comment, etc) extend and the
Content.find_by_content(@query) is used. This would work, however I do
want to have a “Core” model which is extended in that fashion. But
have a acts_as_ferrett within each model, all referencing the same
Then have one search page which queries them all, and links to the
controller/show/id for each record result.
Any ideas how I may use the acts_as_ferret to do this?
Nathaniel S. H. Brown http://nshb.net