webservice::solr::response(3pm) debian man page | unix.com

Man Page: webservice::solr::response

Operating Environment: debian

Section: 3pm

WebService::Solr::Response(3pm) 			User Contributed Perl Documentation			   WebService::Solr::Response(3pm)

NAME
WebService::Solr::Response - Parse responses from Solr
SYNOPSIS
my $res = WebService::Solr::Response->new( $http_res ); for my $doc( $res->docs ) { print $doc->value_for( 'id'), " "; } my $pager = $res->pager;
DESCRIPTION
This class encapsulates responses from the Solr Web Service. Typically it is used when documents are returned from a search query, though it will accept all responses from the service.
ACCESSORS
o raw_response - the raw HTTP::Response object. o content - a hashref of deserialized JSON data from the response. o docs - an array of WebService::Solr::Document objects. o pager - a Data::Page object for the search results. o pageset - a Data::Pageset object for the search results. Takes the same arguments as "Data::Pageset->new" does. All arguments optional.
METHODS
new( $response ) Given an HTTP::Response object, it will parse the returned data as required. BUILDARGS( @args ) A Moose override to allow our custom constructor. facet_counts( ) A shortcut to the "facet_counts" key in the response data. spellcheck( ) A shortcut to the "spellcheck" key in the response data. solr_status( ) Looks for the status value in the response data. ok( ) Calls "solr_status()" and check that it is equal to 0.
AUTHORS
Brian Cassidy <bricas@cpan.org> Kirk Beers
COPYRIGHT AND LICENSE
Copyright 2008-2012 National Adult Literacy Database This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-05-24 WebService::Solr::Response(3pm)
Related Man Pages
http::message::psgi(3pm) - debian
www::opensearch::response(3pm) - debian
webservice::solr(3pm) - debian
webservice::solr::query(3pm) - debian
webservice::youtube::video(3pm) - debian
Similar Topics in the Unix Linux Community
How to automate responses
Apache Solr 1.3 (Default branch)
SCO Files Its Response to Novell's Petition for Rehearing En Banc
Solr Documentation NEEDED | Solr 1.4 on Ubuntu 10.04 LTS
Solr--Basic Example execution error