WebService::Lucene::Results - Results from a search or list operation
# documents @docs = $results->documents; # iterator $docs = $results->documents; # Data::Page object $pager = $results->pager; # next page $results = $results->next_page; # previous page $results = $results->previous_page;
Wraps a list of documents and a Data::Page object.
Creates an empty results object.
Generates a results object from an XML::Atom::Feed object.
Generates a results object from an WWW::OpenSearch::Response object.
Accessor for the original results object.
Accessor for the Data::Page object.
Accessor for an array ref of documents.
Returns an interator in scalar context or an array of documents in list context.
Goes to the next page of results.
Goes to the previous page of results.
Returns the opensearch:Query field with rel="correction" if it exists. In list context, returns the full list. In scalar context only the first suggestion is returned.
opensearch:Query
rel="correction"
Alias for suggestion().
suggestion()
Attempts to get a link tag of type $type from an Atom feed.
$type
Attempts to get an Atom feed from $url and send it to new_from_feed.
$url
new_from_feed
Brian Cassidy <brian.cassidy@nald.ca>
Adam Paynter <adam.paynter@nald.ca>
Copyright 2006-2009 National Adult Literacy Database
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WebService::Lucene, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Lucene
CPAN shell
perl -MCPAN -e shell install WebService::Lucene
For more information on module installation, please visit the detailed CPAN module installation guide.