WebService::Solr::Response(3pm) | User Contributed Perl Documentation | WebService::Solr::Response(3pm) |
WebService::Solr::Response - Parse responses from Solr
my $res = WebService::Solr::Response->new( $http_res ); for my $doc( $res->docs ) { print $doc->value_for( 'id'), "\n"; } my $pager = $res->pager;
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.
Given an HTTP::Response object, it will parse the returned data as required.
A Moo override to allow our custom constructor.
A shortcut to the "facet_counts" key in the response data.
A shortcut to the "spellcheck" key in the response data.
Looks for the status value in the response data.
Calls "solr_status()" and check that it is equal to 0.
Brian Cassidy <bricas@cpan.org>
Kirk Beers
Copyright 2008-2016 National Adult Literacy Database
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2017-11-01 | perl v5.26.1 |