tamaramata / solrnet

Automatically exported from code.google.com/p/solrnet
0 stars 0 forks source link

Delete by id and query in the same request #50

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Solr 1.4 supports deleting by id and query in the same request.
See http://wiki.apache.org/solr/UpdateXmlMessages#head-
f5553a8214869b11708ad5476e05e7b05a024c23

Original issue reported on code.google.com by mauricio...@gmail.com on 8 Apr 2009 at 3:40

GoogleCodeExporter commented 8 years ago
I've implemented a Delete overload that accepts both a IEnumerable<string> and 
a 
ISolrQuery and then constructs a delete command using both. This is my first 
work on 
SolrNet so please take a carefull look if I did everything right.

Original comment by osdezw...@gmail.com on 26 Feb 2010 at 7:56

Attachments:

GoogleCodeExporter commented 8 years ago
I updated the code so that SolrBasicServer and SolrServer don't use 
DeleteByQueryParam and DeleteByMultipleIdParam anymore. 

All delete methods now use DeleteByIdAndOrQueryParam. I also changed the 
ToXmlNode 
method of DeleteByIdAndOrQueryParam so it can handle either a null for the ids 
or the 
query. 

I've  excluded DeleteByQueryParam  and DeleteByMultipleIdParam from the 
project. They 
are unused now but I can't delete them from a patch so someone with commit 
access 
will need to do that if the patch is accepted.

Original comment by osdezw...@gmail.com on 27 Feb 2010 at 12:02

Attachments:

GoogleCodeExporter commented 8 years ago
Applied in r518

Original comment by mauricio...@gmail.com on 27 Feb 2010 at 8:08