-
-
27 Oct 2007 19:46:10 UTC
- Development release
- Distribution: KinoSearch
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (5)
- Testers (21 / 5 / 2)
- Kwalitee
Bus factor: 0- License: perl_5
- Activity
24 month- Tools
- Download (460.82KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- Marvin Humphrey <marvin at rectangular dot com>
- Dependencies
- Compress::Zlib
- HTML::Parser
- Lingua::Stem::Snowball
- Lingua::StopWords
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Dummy class, only here to support initialization of Weights from Queries.
NAME
KinoSearch::Search::MultiSearcher - Aggregate results from multiple searchers.
SYNOPSIS
my $schema = MySchema->new; for my $server_name (@server_names) { push @searchers, KinoSearch::Search::SearchClient->new( peer_address => "$server_name:$port", password => $pass, schema => $schema, ); } my $multi_searcher = KinoSearch::Search::MultiSearcher->new( searchables => \@searchers, schema => $schema, ); my $hits = $multi_searcher->search( query => $query );
DESCRIPTION
Aside from the arguments to its constructor, MultiSearcher looks and acts just like a KinoSearch::Searcher object, albeit with some limitations.
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.
Limitations
At present, SortSpec is not supported by MultiSearcher. Also, note that Filter objects are not supported by SearchClient.
METHODS
new
Constructor. Takes two hash-style parameters, both of which are required.
schema - an object which isa KinoSearch::Schema.
searchables - a reference to an array of searchers.
COPYRIGHT
Copyright 2006-2007 Marvin Humphrey
LICENSE, DISCLAIMER, BUGS, etc.
See KinoSearch version 0.20.
Module Install Instructions
To install KinoSearch, copy and paste the appropriate command in to your terminal.
cpanm KinoSearch
perl -MCPAN -e shell install KinoSearch
For more information on module installation, please visit the detailed CPAN module installation guide.