Solr1.4 Both delete by id and delete by query can be specified at the same time.
Example:
<delete> <id>05991</id><id>06000</id> <query>office:Bridgewater</query> <query>office:Osaka</query> </delete> http://wiki.apache.org/solr/UpdateXmlMessages#A.22delete.22_by_ID_and_by_Query 文件编码转换 iconv -f latin1 -t utf8 clear_wk_index.xml > clear_wk_index_.xml 注意solr提交的xml需要是utf8格式,因为里面有中文,默认是latin1格式,会是乱码,所以使用site:xxx删除不了数据 reference: iconv的参数 http://www.cnblogs.com/morebetter/archive/2005/05/28/164099.html
![](http://img.zemanta.com/pixy.gif?x-id=d3c200c2-dd81-80ee-8e27-919d3b93bc5d)