Hi there,

I'm working with some legacy data where customer phone numbers are 
stored with hyphens between the area code, exchange, and number (e.g. 
555-555-5555). Is this the best way to store a phone number? Perhaps 
not, but it's the way they were being stored, so I have to work with 
this format.

Right, so when I save a record the log tells me acts_as_ferret indexed 
the number with the hyphens in place OK. However, find_by_contents does 
not return any results if I query like 555-555-5555.

If I remove the hyphens and save the record, find_by_contents will 
return results (e.g. 5555555555).

Does anyone have any thoughts on this?

Thanks in advance!

M.

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

Reply via email to