Skip Menu |

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

Report information
The Basics
Id: 71946
Status: resolved
Priority: 0/
Queue: Data-SearchEngine-Solr

People
Owner: Nobody in particular
Requestors: henridamien.laurent [...] biblibre.com
Cc:
AdminCc:

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



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
Sounds like remove_by_id is what you are looking for?