---
name: "WebService::Solr::Field"
section: "3pm"
platform: "linux"
package: "libwebservice-solr-perl"
version: "0.44-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/WebService::Solr::Field"
---

# WebService::Solr::Field(3pm)

A field object

## 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 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.

## AUTHORS

Andy Lester `"andy@petdance.com"`

Brian Cassidy \<bricas@cpan.org\>

Kirk Beers

## COPYRIGHT AND LICENSE

Copyright 2008-2014 National Adult Literacy Database Copyright 2015-2020 Andy Lester

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