Unix and Linux Discussions Tagged with fields |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
1,127 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,693 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,938 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
1,736 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
1,549 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,371 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
1,398 |
Shell Programming and Scripting |
|
|
|
2 |
1,355 |
Shell Programming and Scripting |
|
|
|
6 |
3,040 |
Shell Programming and Scripting |
|
|
|
6 |
37,809 |
Shell Programming and Scripting |
|
|
|
6 |
1,248 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
10,018 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,176 |
Shell Programming and Scripting |
|
|
|
4 |
2,195 |
Shell Programming and Scripting |
|
|
|
4 |
1,617 |
Shell Programming and Scripting |
|
|
|
10 |
7,578 |
Shell Programming and Scripting |
|
|
|
2 |
12,019 |
Shell Programming and Scripting |
|
|
|
4 |
2,196 |
Shell Programming and Scripting |
|
|
|
8 |
5,395 |
Shell Programming and Scripting |
|
|
|
8 |
6,893 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,867 |
Shell Programming and Scripting |
|
|
|
5 |
2,903 |
Shell Programming and Scripting |
|
|
|
6 |
3,074 |
Shell Programming and Scripting |
|
|
|
4 |
1,560 |
Shell Programming and Scripting |
|
|
|
2 |
2,599 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
1,820 |
Shell Programming and Scripting |
|
|
|
3 |
4,218 |
Shell Programming and Scripting |
|
|
|
3 |
1,773 |
Shell Programming and Scripting |
|
|
|
2 |
2,029 |
Shell Programming and Scripting |
|
|
|
2 |
1,859 |
Shell Programming and Scripting |
|
|
|
5 |
2,453 |
Shell Programming and Scripting |
|
|
|
3 |
11,978 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
14,743 |
Shell Programming and Scripting |
|
|
|
12 |
4,579 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,215 |
UNIX for Dummies Questions & Answers |
|
|
|
10 |
29,266 |
Shell Programming and Scripting |
|
|
|
1 |
1,543 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,014 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
2,342 |
Shell Programming and Scripting |
|
|
|
1 |
5,225 |
Shell Programming and Scripting |
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)