On Thu, Mar 01, 2007 at 01:22:01PM +0100, Mischa Berger wrote:
> Hi Jens,
>
> > With aaf trunk you can do
> >
> > Folder.multi_search(@search_query, [Myfile], {}, { :conditions => [
> > "customer_id=?", @customer.id ] })
>
> Thanks for your answer. When do you expect this to be in a stable
> release?
As I'm quite busy atm that might take a bit (2 or 3 weeks). However the
current trunk is not 'unstable' - it's in a useable state and passes all
unit tests, so you should give it a try if you need that feature now.
> I'm assuming the customer_id field needs to be indexed too for this to
> work, is that correct?
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.
(normalize should be a function that pads the customer id to a fixed
length string)
Jens
--
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[EMAIL PROTECTED] | www.webit.de
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk