On Tue, Sep 25, 2007 at 09:06:13PM +0200, José Valim wrote:
> I've found out how to do that:
> 
> You have a class 'Class' with acts_as_ferret, so do that:
> 
> queryObj = Class.aff_index.ferret_index.process_query(@query_string)
> searchObj = Class.aaf_index.ferret_index.searcher
> 
> query_results = queryObj.terms(searchObj).collect! {|item| item[:text] 
> }.uniq

right, however I doubt this kind of direct access to Ferret's searcher will 
work with aaf's DRb server.

You should add a method like 'matching_terms(query_string)' to aaf's
LocalIndex class to encapsulate above code, so you can call it across
the DRb connection.

Cheers,
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

Reply via email to