Skip Menu |

This queue is for tickets about the WebService-Solr CPAN distribution.

Report information
The Basics
Id: 89221
Status: new
Priority: 0/
Queue: WebService-Solr

People
Owner: Nobody in particular
Requestors: spudsoup [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.22
Fixed in: (no value)



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;