WebService::Solr::Field.3pm

Langue: en

Autres versions - même langue

Version: 2010-03-17 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

WebService::Solr::Field - A field object

SYNOPSIS

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

DESCRIPTION

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

ACCESSORS

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

METHODS

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_xml( )

Serializes the object to xml.

AUTHORS

Brian Cassidy <bricas@cpan.org>

Kirk Beers <kirk.beers@nald.ca>

Copyright 2008-2010 National Adult Literacy Database

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.