I have a schema with a field name "category" (<field name="category"
type="string" stored="true" indexed="true"/>).  I'm trying to delete
everything with a certain value of category with curl:

I send:

curl http://localhost:8080/solrChunk/nutch/update -H "Content-Type:
text/xml" --data-binary '<delete><query>category:Banks</query></delete>'

Response is:

<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int
name="QTime">23</int></lst>
</response>

I send

curl http://localhost:8080/solrChunk/nutch/update -H "Content-Type:
text/xml" --data-binary '<commit/>'

Response is:

<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int
name="QTime">1914</int></lst>
</response>

but when I go back and query, it shows all the same results as before.

Why isn't it deleting?

-- 
http://www.linkedin.com/in/paultomblin
http://careers.stackoverflow.com/ptomblin

Reply via email to