1LucyX::Remote::ClusterSUesaerrchCeorn(t3r)ibuted Perl DoLcuucmyeXn:t:aRteimoonte::ClusterSearcher(3)
2
3
4

NAME

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

SYNOPSIS

9           my $searcher = eval {
10               LucyX::Remote::ClusterSearcher->new(
11                   schema => MySchema->new,
12                   shards => [ 'search1:7890', 'search2:7890', 'search3:7890' ],
13               );
14           };
15           ...
16           my $hits = eval { $searcher->hits( query => $query ) };
17

DESCRIPTION

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

METHODS

25   new
26       Constructor.  Takes hash-style params.
27
28       ·   schema - A Schema, which must match the Schema used by each remote
29           node.
30
31       ·   shards - An array of host:port pairs running
32           LucyX::Remote::SearchServer instances, which identifying the shards
33           that make up the composite index.
34
35
36
37perl v5.32.0                      2020-07-28 LucyX::Remote::ClusterSearcher(3)
Impressum