logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

WebService::Solr::Field - A field object

Accessors

       •   name - the field's name

       •   value - the field's value

       •   boost - a floating-point boost value

Authors

       Andy Lester "andy@petdance.com"

       Brian Cassidy <bricas@cpan.org>

       Kirk Beers

Description

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

Methods

new($name=>$value,\%options)
       Creates a new field object. Currently, the only option available is a "boost" value.

   BUILDARGS(@args)
       A Moo override to allow our custom constructor.

   to_element()
       Serializes the object to an XML::Easy::Element object.

   to_xml()
       Serializes the object to xml.

Name

       WebService::Solr::Field - A field object

Synopsis

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

See Also