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)
Check Out this Related Man Page
WebService::MusicBrainz::Query(3pm) User Contributed Perl Documentation WebService::MusicBrainz::Query(3pm)NAME
WebService::MusicBrainz::Query
SYNOPSIS ABSTRACT
WebService::MusicBrainz - Interface with the MusicBrainz web service.
DESCRIPTION
This module's relationship with WebService::MusicBrainz::Artist, WebService::MusicBrainz::Release, and WebService::MusicBrainz::Track is a
"has a" relationship. This module will not be instantiated by any client but will only be used internally within the Artist, Release, or
Track classes.
METHODS
new()
This method is the constructor and it will call for initialization. An optional HOST parameter can be passed to select a different
mirrored server.
set_url_params()
Define a list of valid URL query parameters.
set_inc_params()
Define a list of valid arguments for the "inc" URL query parameter.
get()
Perform the URL request (GET) and if success, then return a WebService::MusicBrainz::Response object. Otherwise die.
AUTHOR
Bob Faist <bob.faist@gmail.com>
COPYRIGHT AND LICENSE
Copyright 2006-2009 by Bob Faist
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
http://wiki.musicbrainz.org/XMLWebService
perl v5.10.1 2009-12-06 WebService::MusicBrainz::Query(3pm)
I would have searched for this but I couldn't really think of what to use for the search text...
I've got a situation where I need to automate responses to an executable when running it from a script so that it can be made into a job the operators don't have to interact with. When I run it... (2 Replies)
Hi,
I'm the new user of linux/unix. Can I ask that anybody know how to use the linux/unix shortcut key to search a specific file from a list of directory?
For example, I know the file name that I want to search. But I forget which directory or location is my desired file put.Got any shortcut... (7 Replies)
I have Solr 1.4 running on Tomcat6 installed in an Ubuntu 10.04 LTS openVZ container. I am looking for documentation on Solr. I need to know where Solr and Tomcat do their logging by default when installed from the standard Ubuntu apt repo. I would like to know more about both technologies but Solr... (0 Replies)
Hello ,
I am new bee to Solr and trying to run sample example for solr .
java -Durl=http://locahost:8983/solr/update -jar post.jar books.csv
Error
SimplePostTool version 1.5
Posting files to base url http://locahost:8983/solr/update using content-type... (3 Replies)