Hey..

If I am indexing ModelA and ModelB and I want to search both of them,
I usually just pick one arbitrarily and use it for #multi_search.

Is there a slicker pattern, regarding from which model to invoke
#multi_search? Can it be invoked directly from the Ferret library?
Has anyone put together some sort of "dummy" search class?


acts_as_ferret is storing one index per model. That is why you need
the multi_search method. However, Ferret does not need to store
separate indexes per model. acts_as_ferret is using a so-called
MultiSearcher, see

http://ferret.davebalmain.com/api/classes/Ferret/Search/MultiSearcher.html

to access several indexes at once to search them all. So yes, you
can use Ferrets own MultiSearcher to access all indexes you need
at once. However, acts_as_ferret may change the way the index is
stored in the future, so if you mix acts_as_ferret and 'standard' ferret
API calls, you might have a problem with future versions of AAF.

So if you don't have a specific reason to use your own MultiSearcher,
you shouldn't do it :-) What do you want to achieve?

Gruss
 Ben
---
Benjamin Krause
http://www.omdb.org/
[EMAIL PROTECTED]

_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to