Unix and Linux Discussions Tagged with fields |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
1,425 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
3,081 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
3,563 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,303 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,505 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
3,123 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
1,792 |
Shell Programming and Scripting |
|
|
|
2 |
1,704 |
Shell Programming and Scripting |
|
|
|
6 |
4,172 |
Shell Programming and Scripting |
|
|
|
6 |
40,178 |
Shell Programming and Scripting |
|
|
|
6 |
1,875 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
10,914 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,762 |
Shell Programming and Scripting |
|
|
|
4 |
2,413 |
Shell Programming and Scripting |
|
|
|
4 |
1,734 |
Shell Programming and Scripting |
|
|
|
10 |
8,058 |
Shell Programming and Scripting |
|
|
|
2 |
12,322 |
Shell Programming and Scripting |
|
|
|
4 |
2,391 |
Shell Programming and Scripting |
|
|
|
8 |
5,876 |
Shell Programming and Scripting |
|
|
|
8 |
7,477 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,115 |
Shell Programming and Scripting |
|
|
|
5 |
3,305 |
Shell Programming and Scripting |
|
|
|
6 |
3,142 |
Shell Programming and Scripting |
|
|
|
4 |
1,686 |
Shell Programming and Scripting |
|
|
|
2 |
3,086 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
1,907 |
Shell Programming and Scripting |
|
|
|
3 |
4,406 |
Shell Programming and Scripting |
|
|
|
3 |
1,915 |
Shell Programming and Scripting |
|
|
|
2 |
2,148 |
Shell Programming and Scripting |
|
|
|
2 |
2,024 |
Shell Programming and Scripting |
|
|
|
5 |
2,555 |
Shell Programming and Scripting |
|
|
|
3 |
12,390 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
15,420 |
Shell Programming and Scripting |
|
|
|
12 |
4,867 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,402 |
UNIX for Dummies Questions & Answers |
|
|
|
10 |
29,634 |
Shell Programming and Scripting |
|
|
|
1 |
1,624 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,120 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
2,499 |
Shell Programming and Scripting |
|
|
|
1 |
5,416 |
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)