It seems you can do something like <delete><query>FIELDNAME:a*</query></delete> and <delete><query>FIELDNAME:b*</query></delete> ...but you can't simply <delete><query>FIELDNAME:*</query></delete> or <delete><query>*</query></delete>
The demo post.sh returns <result status="400">Error parsing Lucene query</result> and the demo Solr Admin page shows XML Parsing Error: syntax error Location: http://wiki.ushmm.org:8080/solr/select/?stylesheet=&q=*&version=2.1&start=0&rows=10&indent=on Line Number 1, Column 1:org.apache.solr.core.SolrException: Error parsing Lucene query ^ What is the best way to delete all records, for example if you want to clear out the entire index and reindex everything? On 5/21/06, Chris Hostetter <[EMAIL PROTECTED]> wrote:
: But deleting multiple documents with just one POST is not possible, : right? Is there a special reason for that or is it because nobody asked delete by query will remoe multiple documents with a sigle command .. but if you mean dleete by id .. you may be right about it not having the same "loop" kludge that <add> has. As Yonik has mentioned before .. if you use persistent connections in your HTTP Client layer, there isn't really any advantage to sending multiple commands in one request, vs sending multiple requests. -Hoss