WebSer...::Field(3pm)

πŸ“¦
version 0.44 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

WebService::Solr::Field β€” it's a field object, bestie πŸ’… (this is from the User Contributed Perl Documentation, and yeah, that's the manual name right there, we're just folding it in all casual-like 🌸)


πŸ¦‹ SYNOPSIS πŸ¦‹

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

like. that's it. that's the whole vibe check πŸ‘‘


🌈 DESCRIPTION 🌈

Okay so picture this: this class represents a field from a document πŸ“„ which is basically a name-value pair. Name + value. That's the whole situation. Two things. Iconic honestly πŸ’–


πŸŽ€ ACCESSORS πŸŽ€

the lil getters/setters, the besties that hold the info:

  • name β€” the field's name 🏷️
  • value β€” the field's value πŸ’«
  • boost β€” a floating-point boost value πŸš€ (yes it floats, it's giving ✨flair✨)

πŸ’œ METHODS πŸ’œ

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

Creates a new field object, as one does 🍼✨ Currently, the only option available is a "boost" value. That's the whole menu, no cap.

🧚 BUILDARGS( @args )

A Moo override πŸ„ that lets our custom constructor do its lil custom thing. iykyk.

⭐ to_element( )

Serializes the object to an XML::Easy::Element object πŸ“¦βœ¨ turning our vibes into structured XML realness.

πŸ”₯ to_xml( )

Serializes the object to xml πŸ“ periodt.


πŸ‘‘ AUTHORS πŸ‘‘

the masterminds, the main characters, the ones who ate πŸ’…:

  • Andy Lester andy@petdance.com
  • Brian Cassidy <bricas@cpan.org>
  • Kirk Beers

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. iconic behaviour, fr fr.


ngl bestie, this whole thing shipped as perl v5.36.0 documentation dated 2022-10-16 β€” so go forth, make fields, slay πŸŒˆπŸ“πŸ’œ
πŸ“¦ where this page comes from