Peter Karman > Search-OpenSearch-Federated-0.002 > Search::OpenSearch::Federated

Download:
Search-OpenSearch-Federated-0.002.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.002   Source   Latest Release: Search-OpenSearch-Federated-0.007

NAME ^

Search::OpenSearch::Federated - aggregate OpenSearch results

SYNOPSIS ^

 my $ms = APM::FedSearch::MultiSearch->new(
    urls    => [
        'http://someplace.org/search?q=foo',
        'http://someother.org/search?q=foo',
    ],
    timeout => 10,  # very generous
 );

 my $results = $ms->search();
 for my $r (@$results) {
     printf("title=%s", $r->title);
     printf("uri=%s",   $r->uri);
     print "\n";
 }

METHODS ^

new( args )

Constructor. args should include key urls with value of an array reference.

search

Execute the search. Returns array ref of results sorted by score.

fields

Returns fields set in new().

total

Return total hits.

COPYRIGHT ^

Copyright 2013 - American Public Media Group

AUTHOR ^

Peter Karman, <karman at cpan.org>

BUGS ^

Please report any bugs or feature requests to bug-search-opensearch-federated at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Search-OpenSearch-Federated. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Search::OpenSearch::Federated

You can also look for information at:

ACKNOWLEDGEMENTS ^

LICENSE ^

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: