On Sat, Jul 08, 2006 at 01:10:18AM +0200, caspar wrote:
> Hi how do you search against the results returned by find_by_contents 
> using ferret?
> i.e. how do you "search within these results"?
> This is an acts_as_ferret question again...

As acts_as_ferret defaults to using AND as operator between query terms,
the easiest solution is to simply append the new query to the original one.

If you configured aaf to use OR as default operator, you'll have to AND 
the original and the new query together, i.e. 
"(#{old_query}) AND (#{new_query})"


Jens


-- 
webit! Gesellschaft für neue Medien mbH          www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer       [EMAIL PROTECTED]
Schnorrstraße 76                         Tel +49 351 46766  0
D-01069 Dresden                          Fax +49 351 46766 66
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to