NAME
SWISH::API::Remote - Perl module to perform searches on a swished daemon server
SYNOPSIS
use SWISH::API::Remote;
my $sw = SWISH::API::Remote->new( 'http://yourserverLLD.com/swished');
my $w = "foo OR bar";
my $results = $sw->Execute( $w );
printf("Fetched %d of %d hits for search on '%s'\n",
$results->Fetched(), $results->Hits(), $w);
while ( my $r = $results->NextResult() ) {
print join(" ", map { $r->Property($_) } ($r->Properties()) ) . "\n";
}
if ($results->Error()) {
die $results->ErrorString();
}
DESCRIPTION
Performs searches on a remote swished server using an interface similar to SWISH::API
- my $remote = SWISH::API::Remote->new( "http://yourserv.com/swished", "INDEX", \%remote_options);
-
Creates a SWISH::API::Remote object. $options{DEBUG} is the only recognized key of %options so far.
- my $results = $remote->Execute( $search, \%search_options);
-
Performs a search using SWISH::API::Remote and returns a SWISH::API::Results object. Recognized search_options are: MAX: the maximum number of hits to fetch (default 10) BEGIN: which hit to start at (default 0) PROPERTIES: which properties to fetch (default 0)
SEE ALSO
SWISH::API::Remote::Results, SWISH::API::Remote::Result
AUTHOR
Josh Rabinowitz, <joshr@localdomain>
COPYRIGHT AND LICENSE
Copyright (C) 2004 by Josh Rabinowitz
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.3 or, at your option, any later version of Perl 5 you may have available.