lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Levy" <lucenel...@gmail.com>
Subject Re: One big XML file vs. many HTTP requests
Date Mon, 22 May 2006 20:41:15 GMT
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 <hossman_lucene@fucit.org> 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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message