Using acts_as_ferret I'm trying to do a query like:

active:(true) title|body:(#{params[:s]}) product_price:( >= 
#{params[:min]})


Where I want to return only the active products that contain the search 
term in the title or body and has a minimum price >= params[:min]

I'm finding that even though I'm indexing the product price as an 
integer (so no .00 to cause confusion) I'm getting results in the 50 
value range as well as 500 if I set the min price as 500. I presume 
ferret is doing the price as a string comparison, but is there any way 
to make it do a numeric match?

Thanks

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to