On 8/22/06, Jens Kraemer <[EMAIL PROTECTED]> wrote:
> On Tue, Aug 22, 2006 at 09:38:57AM +0200, Benjamin Krause wrote:
> > > Checkout the MultiSearcher class. it behaves like
> >
> > thanks! .. i guess you mean the Ferret::Index::MultiReader? can't find a
> > multisearcher in the api ..
>
> don't know why it isn't in the api, but the MultiSearcher class does exist.
> besides the constructor, the interface is the same as in IndexSearcher.

It wasn't in the API because I've been too busy/lazy to update the
documentation for a while. The documentation for Ferret 0.10.0 is
up-to-date and I will try and keep it that way.

> Probably MultiReader could be used to search across multiple indexes, too,
> but this would be more low-level then.

MultiReader is now preferrable to using MultiSearcher. There should be
a large speed difference and sorting and scoring in the MultiSearcher
is a bit flaky. I'd like to remove MultiSearcher as it's
implementation is very difficult but it'll come in handy if I ever get
around to implementing a remote searcher so multiple machines can be
searched at once. Not a priority in the foreseeable future though.

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

Reply via email to