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::Solr::Document(3pm) User Contributed Perl Documentation WebService::Solr::Document(3pm)NAME
WebService::Solr::Document - A document object
SYNOPSIS
my $doc = WebService::Solr::Document->new;
$doc->add_fields( @fields );
$doc->boost( 2.0 );
my $id = $doc->value_for( 'id' );
my @subjects = $doc->values_for( 'subject' );
DESCRIPTION
This class represents a basic document object, which is basically a collection of fields.
ACCESSORS
o fields - an array of fields
o boost - a floating-point "boost" value
METHODS
new( @fields|@fields )
Constructs a new document object given @fields. A field can be a WebService::Solr::Field object, or a structure accepted by
"WebService::Solr::Field->new".
BUILDARGS( @args )
A Moose override to allow our custom constructor.
add_fields( @fields|@fields )
Adds @fields to the document.
field_names
Returns a list of field names that are in this document.
value_for( $name )
Returns the first value for $name.
values_for( $name )
Returns all values for $name.
to_element( )
Serializes the object to an XML::Easy::Element object.
to_xml( )
Serializes the object to xml.
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::Document(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)