KinoSearch1::Search::MultiSearcher(3pm)

KinoSearch1::Search::MultiSearcher3pm

Aggregate results from multiple searchers.

Usage

    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 );

Dummy class, only here to support initialization of Weights from Queries.

Overview

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.

Methods

new

Constructor. Takes two hash-style parameters, both of which are required.

•

analyzer - an item which subclasses KinoSearch1::Analysis::Analyzer.

•

searchables - a reference to an array of searchers.

LICENSE, DISCLAIMER, BUGS, etc.

See KinoSearch1 version 1.01.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

From libkinosearch1-perl 1.01-6+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.