SOLR-976: deleteByQuery is ignored when deleteById is placed prior to deleteByQuery in a <delete>

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@742106 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Koji Sekiguchi 2009-02-08 14:32:13 +00:00
parent 60347b2c2c
commit c7d0222b13
2 changed files with 9 additions and 0 deletions

View File

@ -247,6 +247,13 @@ Bug Fixes
28. SOLR-1008: Fix stats.jsp XML encoding for <stat> item entries with ampersands in their names. (ehatcher)
29. SOLR-976: deleteByQuery is ignored when deleteById is placed prior to deleteByQuery in a <delete>.
Now both delete by id and delete by query can be specified at the same time as follows. (koji)
<delete>
<id>05991</id><id>06000</id>
<query>office:Bridgewater</query><query>office:Osaka</query>
</delete>
Other Changes
----------------------

View File

@ -231,6 +231,8 @@ class XMLLoader extends ContentStreamLoader {
"unexpected XML tag /delete/" + currTag);
}
processor.processDelete(deleteCmd);
deleteCmd.id = null;
deleteCmd.query = null;
break;
// Add everything to the text