Subject: | delete can't take ids only |
Date: | Wed, 26 Oct 2011 11:27:10 +0200 |
To: | bug-Data-SearchEngine-Solr [...] rt.cpan.org |
From: | Henri-Damien LAURENT <henridamien.laurent [...] biblibre.com> |
Hi,
I found it strange that delete would not be able to send ids only
This is owed to the fact that the delete called for WebService::Solr
takes query=>$query, id=>$id,
no matter whether $query is defined or not.
A solution could be to test whether query or id is defined before
sending to Solr.
If you pass
delete(undef,[1,2,3])
Then Lucene will send back an error.
Which is not what one would expect.
--
Henri-Damien LAURENT
BibLibre