KinoSearch::Search::MultiSearcher(3pm)

NAME

KinoSearch::Search::MultiSearcher - Aggregate results from multiple
searchers.

SYNOPSIS

for my $server_name (@server_names) {
    push @searchers, KinoSearch::Search::SearchClient->new(
        peer_address => "$server_name:$port",
        analyzer     => $analyzer,
        password     => $pass,
    );
}
my $multi_searcher = KinoSearch::Search::MultiSearcher->new(
    searchables => \@searchers,
    analyzer    => $analyzer,
);
my $hits = $multi_searcher->search( query => $query );

DESCRIPTION

Aside from the arguments to its constructor, MultiSearcher looks and
acts just like a KinoSearch::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.

METHODS

new
Constructor. Takes two hash-style parameters, both of which are
required.
o analyzer - an item which subclasses KinoSearch::Analysis::Analyzer.
o searchables - a reference to an array of searchers.

COPYRIGHT

Copyright 2006-2009 Marvin Humphrey

LICENSE, DISCLAIMER, BUGS, etc.

See KinoSearch version 0.165.
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout