Hi Jeff,

You canĀ  delete either by unique id or by a query.
It seems that you want to delete all documents having category of monitor.

<delete><query>cat:monitor</query></delete>

http://wiki.apache.org/solr/UpdateXmlMessages#A.22delete.22_by_ID_and_by_Query


----- Original Message -----
From: Jeff Zhang <zjf...@gmail.com>
To: solr-user@lucene.apache.org
Cc: 
Sent: Monday, May 2, 2011 5:04 AM
Subject: Problems of deleting documents from Solr

Hi all,

I want to update some document, so first I delete these document by invoking
command "java -Ddata=args -Dcommit=yes -jar post.jar
"<delete><cat>monitor</cat></delete>"
The result is that I can not search the deleted documents but I can still
see the terms of these document in
http://localhost:8983/solr/admin/schema.jsp
Even when I restart solr, it's still there, I notice that the *numDocs: * 0
while *maxDoc: * 1

Why's that ? How can I delete the documents correctly ?

-- 
Best Regards

Jeff Zhang

Reply via email to