Umm, has no one used the acts_as_ferret plugin? Well, since no one has
responded to the original question below, I''m wondering what you guys
are using as the search engine for your sites. Any input would be
greatly appreciated. Thanks.
Best Regards,
Tamim
Tamim Azizadah wrote:> I recently installed ferret and the acts_as_ferret plugin but I''m
> getting results that I just don''t understand. The model
I''m using is for
> products. The table contains fields ''name'',
''description'', ''sku'',
> ''model''. This is what I have put in my model:
>
> acts_as_ferret :fields => { :sku => {}, :model => {},
''name'' => { :boost
> => 2, :store => Ferret::Document::Field::Store::YES },
''description'' =>
> { :boost => 1.5, :store => Ferret::Document::Field::Store::YES } },
> :store_class_name => true
>
> I have a couple of products called:
> product 1: Armored Troopers Votoms Red Scopedog EX-01 Action Figure
> product 2: Fate/Hollow Ataraxia Sakura Matou Grocery Shopping PVC Statue
>
> If I search for ''Armored'', it comes back correctly with
product 1.
> If I search for ''Votoms'', it comes back with NOTHING
> If I search for ''figure'', it comes back with product 1
> If I search for ''Scopego'', it comes back with NOTHING
>
> Similarly:
>
> If I search for ''fate'', it comes back with product 2
> If I search for ''shopping'' it comes back with NOTHING
> If I search for ''statue'' it comes back with product 2
>
> I''m really not getting the logic with why it''s doing
that. It seems like
> it''s catching words that are in the beginning and near the end of
the
> product names, but not the middle. I''m not really familiar with
how
> ferret''s search algorithm works, but I''m assuming (yes,
not a good
> idea!) that it searches the entire product name.
>
> Any help with this would be greatly appreciated. Thanks!
>
> Best Regards,
>
> Tamim
>
>
>
>
>
> >
>
>
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---