KinoSearch1::Search::SearchServer(3pm)

KinoSearch1::Search::SearchServer3pm

Make a searcher remotely accessible

Usage

    my $searcher = KinoSearch1::Searcher->new(
        analyzer => $analyzer,
        invindex => '/path/to/invindex',
    );
    my $server = KinoSearch1::Search::SearchServer->new(
        searchable => $searcher,
        port       => 7890,
        password   => $pass,
    );
    $server->serve;

Overview

The SearchServer class, in conjunction with SearchClient, makes it possible to run a search on one machine and report results on another.

By aggregating several SearchClients under a MultiSearcher, the cost of searching what might have been a prohibitively large monolithic index can be distributed across multiple nodes, each with its own, smaller index.

Methods

new

Constructor. Takes hash-style parameters.

•

searchable - The Searcher that the SearchServer will wrap.

•

port - the port on localhost that the server should open and listen on.

•

password - a password which must be supplied by clients.

serve

Open a listening socket on localhost and wait for SearchClients to connect.

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.