Dummy class, only here to support initialization of Weights from Queries.
KinoSearch::Search::MultiSearcher - Aggregate results from multiple searchers.
my $schema = MySchema->new; for my $server_name (@server_names) { push @searchers, KinoSearch::Search::SearchClient->new( peer_address => "$server_name:$port", password => $pass, schema => $schema, ); } my $multi_searcher = KinoSearch::Search::MultiSearcher->new( searchables => \@searchers, schema => $schema, ); my $hits = $multi_searcher->search( query => $query );
Aside from the arguments to its constructor, MultiSearcher looks and acts just like a KinoSearch::Searcher object, albeit with some limitations.
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.
At present, SortSpec is not supported by MultiSearcher. Also, note that QueryFilter is not supported by SearchClient.
Constructor. Takes two hash-style parameters, both of which are required.
schema - an object which subclasses KinoSearch::KinoSearch::Schema.
searchables - a reference to an array of searchers.
Copyright 2006-2007 Marvin Humphrey
See KinoSearch version 0.14.
To install KinoSearch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm KinoSearch
CPAN shell
perl -MCPAN -e shell install KinoSearch
For more information on module installation, please visit the detailed CPAN module installation guide.