lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Max Lynch <ihas...@gmail.com>
Subject Delete by query issue
Date Wed, 25 Aug 2010 22:12:35 GMT
Hi,
I am trying to delete all documents that have null values for a certain
field.  To that effect I can see all of the documents I want to delete by
doing this query:
-date_added_solr:[* TO *]

This returns about 32,000 documents.

However, when I try to put that into a curl call, no documents get deleted:
curl http://localhost:8985/solr/newsblog/update?commit=true -H
"Content-Type: text/xml" --data-binary '<delete><query>-date_added_solr:[*
TO *]</query></delete>'

Solr responds with:
<response>
<lst name="responseHeader"><int name="status">0</int><int
name="QTime">364</int></lst>
</response>

But nothing happens, even if I explicitly issue a commit afterward.

Any ideas?

Thanks.

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