Unix and Linux Discussions Tagged with fields |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
1,219 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,823 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
3,068 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
1,835 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
1,711 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,545 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
1,478 |
Shell Programming and Scripting |
|
|
|
2 |
1,441 |
Shell Programming and Scripting |
|
|
|
6 |
3,248 |
Shell Programming and Scripting |
|
|
|
6 |
38,280 |
Shell Programming and Scripting |
|
|
|
6 |
1,324 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
10,210 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,291 |
Shell Programming and Scripting |
|
|
|
4 |
2,262 |
Shell Programming and Scripting |
|
|
|
4 |
1,659 |
Shell Programming and Scripting |
|
|
|
10 |
7,671 |
Shell Programming and Scripting |
|
|
|
2 |
12,093 |
Shell Programming and Scripting |
|
|
|
4 |
2,238 |
Shell Programming and Scripting |
|
|
|
8 |
5,474 |
Shell Programming and Scripting |
|
|
|
8 |
6,996 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,924 |
Shell Programming and Scripting |
|
|
|
5 |
3,004 |
Shell Programming and Scripting |
|
|
|
6 |
3,099 |
Shell Programming and Scripting |
|
|
|
4 |
1,579 |
Shell Programming and Scripting |
|
|
|
2 |
2,675 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
1,841 |
Shell Programming and Scripting |
|
|
|
3 |
4,279 |
Shell Programming and Scripting |
|
|
|
3 |
1,809 |
Shell Programming and Scripting |
|
|
|
2 |
2,051 |
Shell Programming and Scripting |
|
|
|
2 |
1,895 |
Shell Programming and Scripting |
|
|
|
5 |
2,470 |
Shell Programming and Scripting |
|
|
|
3 |
12,040 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
14,864 |
Shell Programming and Scripting |
|
|
|
12 |
4,634 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,238 |
UNIX for Dummies Questions & Answers |
|
|
|
10 |
29,344 |
Shell Programming and Scripting |
|
|
|
1 |
1,555 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,032 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
2,379 |
Shell Programming and Scripting |
|
|
|
1 |
5,282 |
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)