hi all,
i am using acts_as_ferret plugin(0.4.1 Latest) with ferret gem(0.11.4
Latest)
on rails 1.2.5 and ruby 1.8.6(UBUNTU Gutsy)
i have this
:Product Model
acts_as_ferret :fields => {:name => { :boost => 2 ,:store => :yes},
:short_desc => { :boost => 1.5,:store =>
:yes },
:tag_list => {:boost => 1 },
:name_for_sort => {:index => :untokenized}
}
and i search using this code in my products controller
@products = Product.find_by_contents ‘’+params[:q]+’’
i have a product with short name as “hank’s outlet”
when i search for hank i get the resultant product as expected.
but when i search with param as hank’s" or “hanks” —i dont get any
results.
how can i get this done. pls help
i have been trying to understand to use the analysers and tokenisers
but couldn’t get through
thanks
jags