class Post < ActiveRecord::Base
acts_as_ferret(
:fields => {
:ferret_tags => {boost, whatever},
other fields
}
)
def ferret_tags
tags.join " "
end
end
On 9/13/06, Jeff <jeff.cabaniss-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> I am currently using acts_as_ferret to search on a Posts table (title
> and content fields). These posts also have tags (with has_many :tags,
> :through => :questions_tags). I can''t figure out how to get
> acts_as_ferret to work with that relationship and allow searching of
> title, content, And tags at the same time (with the ability to set
> boost as well). Can this be done?
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---