WebService::Solr::Field - A field object


WebService-Solr documentation  | view source Contained in the WebService-Solr distribution.

Index


NAME

Top

WebService::Solr::Field - A field object

SYNOPSIS

Top

    my $field = WebService::Solr::Field->new( foo => 'bar' );

DESCRIPTION

Top

This class represents a field from a document, which is basically a name-value pair.

ACCESSORS

Top

* name - the field's name
* value - the field's value
* boost - a floating-point boost value

METHODS

Top

new( $name => $value, \%options )

Creates a new field object. Currently, the only option available is a "boost" value.

BUILDARGS( @args )

A Moose override to allow our custom constructor.

to_element( )

Serializes the object to an XML::Easy::Element object.

to_xml( )

Serializes the object to xml.

AUTHORS

Top

Brian Cassidy <bricas@cpan.org>

Kirk Beers

COPYRIGHT AND LICENSE

Top


WebService-Solr documentation  | view source Contained in the WebService-Solr distribution.