Unix and Linux Discussions Tagged with fields |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
1,019 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,258 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,763 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
1,549 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
1,347 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
1,912 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
1,221 |
Shell Programming and Scripting |
|
|
|
2 |
1,185 |
Shell Programming and Scripting |
|
|
|
6 |
2,392 |
Shell Programming and Scripting |
|
|
|
6 |
36,923 |
Shell Programming and Scripting |
|
|
|
6 |
1,182 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
9,807 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,013 |
Shell Programming and Scripting |
|
|
|
4 |
2,080 |
Shell Programming and Scripting |
|
|
|
4 |
1,579 |
Shell Programming and Scripting |
|
|
|
10 |
7,497 |
Shell Programming and Scripting |
|
|
|
2 |
11,904 |
Shell Programming and Scripting |
|
|
|
4 |
2,114 |
Shell Programming and Scripting |
|
|
|
8 |
5,284 |
Shell Programming and Scripting |
|
|
|
8 |
6,773 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,833 |
Shell Programming and Scripting |
|
|
|
5 |
2,770 |
Shell Programming and Scripting |
|
|
|
6 |
3,042 |
Shell Programming and Scripting |
|
|
|
4 |
1,538 |
Shell Programming and Scripting |
|
|
|
2 |
2,492 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
1,798 |
Shell Programming and Scripting |
|
|
|
3 |
3,495 |
Shell Programming and Scripting |
|
|
|
3 |
1,724 |
Shell Programming and Scripting |
|
|
|
2 |
1,992 |
Shell Programming and Scripting |
|
|
|
2 |
1,802 |
Shell Programming and Scripting |
|
|
|
5 |
2,427 |
Shell Programming and Scripting |
|
|
|
3 |
11,917 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
11,670 |
Shell Programming and Scripting |
|
|
|
12 |
4,474 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,194 |
UNIX for Dummies Questions & Answers |
|
|
|
10 |
28,960 |
Shell Programming and Scripting |
|
|
|
1 |
1,531 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,985 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
2,304 |
Shell Programming and Scripting |
|
|
|
1 |
4,513 |
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)