-
-
27 Feb 2018 08:40:23 UTC
- Distribution: Lucy
- Module version: 0.006002
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Clone repository
- Issues
- Testers (1251 / 3 / 7)
- Kwalitee
Bus factor: 1- License: apache_2_0
- Perl: v5.8.3
- Activity
24 month- Tools
- Download (1.12MB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- The Apache Lucy Project <dev at lucy dot apache dot org>
- Dependencies
- Clownfish
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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.
schema - A Schema, which must match the Schema used by each remote node.
shards - An array of host:port pairs running LucyX::Remote::SearchServer instances, which identifying the shards that make up the composite index.
Module Install Instructions
To install Lucy, copy and paste the appropriate command in to your terminal.
cpanm Lucy
perl -MCPAN -e shell install Lucy
For more information on module installation, please visit the detailed CPAN module installation guide.