Thanks Jens,
I really appreciate your help.
> no, the find_options are only used when fetching the results via active
> record.
>
> If you indexed the customer_id field you could just append
> "+customer_id:#{normalize(@customer.id)}" to the ferret query string.
I have a few more questions.
At the moment I am indexing the customer_id too. Which one of these two
option would be better performance-wise?
> (normalize should be a function that pads the customer id to a fixed
> length string)
Why is it needed to pad the customer id to a fixed length string? I
tried it without the padding and that seems to work. In case it's better
to do the padding; should I find the id with the longest length and add
spaces in front if the length of the customer_id I'm searching for is
smaller?
Thanks again!
Mischa.
--
http://boxroom.rubyforge.org
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk