Subject: | Perl warning when storing records with undef fields. |
If you attempt to store database records that include undef fields (for a database nul), then WebService::Solr::Document emits a warning and stores an empty string.
If Solr will allow a database nul to be stored, then a perl undef should do that. If not, then I would expect WebService::Solr, to strip undef fields from a document before injecting it into Solr.
Example:
my $solr = WebService::Solr->new(...);
my @records = (
{
'foo' => 'A long string'
'bar' => 53,
},
{
'foo' => 'A long string'
'bar' => undef,
},
);
$solr->add(\@records);
Emits a warning about use of undef in string at line 53 of WebService::Solr::Document;