KinoSearch1::Search::MultiSearcher(3pm) | User Contributed Perl Documentation | KinoSearch1::Search::MultiSearcher(3pm) |
KinoSearch1::Search::MultiSearcher - Aggregate results from multiple searchers.
for my $server_name (@server_names) { push @searchers, KinoSearch1::Search::SearchClient->new( peer_address => "$server_name:$port", analyzer => $analyzer, password => $pass, ); } my $multi_searcher = KinoSearch1::Search::MultiSearcher->new( searchables => \@searchers, analyzer => $analyzer, ); my $hits = $multi_searcher->search( query => $query );
Aside from the arguments to its constructor, MultiSearcher looks and acts just like a KinoSearch1::Searcher object.
The primary use for MultiSearcher is to aggregate results from several remote searchers via SearchClient, diffusing the cost of searching a large corpus over multiple machines.
Constructor. Takes two hash-style parameters, both of which are required.
Copyright 2006-2010 Marvin Humphrey
See KinoSearch1 version 1.01.
2022-10-20 | perl v5.36.0 |