lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gora Mohanty <g...@mimirtech.com>
Subject Re: please help! <delete><query>*:*</query></delete> followed by commit does not work
Date Wed, 07 Sep 2011 08:01:35 GMT
On Wed, Sep 7, 2011 at 1:18 PM, Roland Tollenaar <rwatollenaar@gmail.com> wrote:
> Hi All,
>
> I want to clear the solr server and start loading documents afresh.
>
> According to the information I found on internet I would have to do
> somethign like this:
>
> http://localhost:8983/solr/update?commit=true&-H&Content-Type:&text/xml&--data-binary&'<delete><query>*:*</query></delete>'
[...]

Are you loading that URL directly in the browser? That won't work.
You will need to use something like curl. Thus,

curl http://localhost:8983/solr/update?commit=true -H "Content-Type:
text/xml" --data-binary '<delete><query>*:*</query></delete>'

Please see http://wiki.apache.org/solr/UpdateXmlMessages .

Regards,
Gora

Mime
View raw message