Peter Karman > Lucy-0.3.0 > LucyX::Remote::ClusterSearcher

Download:
Lucy-0.3.0.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Source   Latest Release: Lucy-0.4.1

NAME ^

LucyX::Remote::ClusterSearcher - Search multiple remote indexes.

SYNOPSIS ^

    my $searcher = eval {
        LucyX::Remote::ClusterSearcher->new(
            schema => MySchema->new,
            shards => [ 'search1:7890', 'search2:7890', 'search3:7890' ],
        );
    };
    ...
    my $hits = eval { $searcher->hits( query => $query ) };

DESCRIPTION ^

ClusterSearcher is a subclass of Lucy::Search::Searcher which can be used to search a composite index made up of multiple shards, where each shard is represented by a host:port pair running LucyX::Remote::SearchServer.

METHODS ^

new

Constructor. Takes hash-style params.

syntax highlighting: