I have two cores on my server and I have made this as a request xml
:
I run
java -Durl=http:/localhost:8983/solr/multimedia/update -jar post.jar deleteSites.xml
I get
SimplePostTool version 1.5
Posting files to base url http://localhost:8983/solr/multimedia/update using content-type application/xml..
POSTing file deleteSites.xml
1 files indexed.
COMMITting Solr index changes to http://localhost:8983/solr/multimedia/update..
I run
java -jar post.jar deleteSites.xml
I get
SimplePostTool version 1.5
Posting files to base url http://localhost:8983/solr/update using content-type application/xml..
POSTing file deleteSites.xml
1 files indexed.
COMMITting Solr index changes to http://localhost:8983/solr/update..
I have one core named multimedia and I want to use an XML to update one of the cores. Even without the -Durl, neither of the two cores have any difference in the number of results they contain (they should be deleted)
The delete sites xml is as follows : <delete><query>*:*</query></delete>
I do not think that you can leverage the post.jar file to issue a delete query to Solr. While it uses the same update handler that is coded specifically to post(add) documents to the index. As you can see from the response that you are receiving.
In order to issue a delete query I would recommend using the following curl command:
You can get more details on using delete commands and other UpdateXMLMessages on the Solr Wiki.