How do I delete all data from solr
by command? We are using solr
with lily
and hbase
.
How can I delete data from both hbase and solr?
http://lucene.apache.org/solr/4_10_0/tutorial.html#Deleting+Data
How do I delete all data from solr
by command? We are using solr
with lily
and hbase
.
How can I delete data from both hbase and solr?
http://lucene.apache.org/solr/4_10_0/tutorial.html#Deleting+Data
Post json data (e.g. with curl)
I came here looking to delete all documents from solr instance through .Net framework using SolrNet. Here is how I was able to do it:
This has cleared all the documents. (I am not sure if this could be recovered, I am in learning and testing phase of Solr, so please consider backup before using this code)
You can use the following commands to delete. Use the "match all docs" query in a delete by query command:
You must also commit after running the delete so, to empty the index, run the following two commands:
Another strategy would be to add two bookmarks in your browser:
Source docs from SOLR:
https://wiki.apache.org/solr/FAQ#How_can_I_delete_all_documents_from_my_index.3F
If you need to clean out all data, it might be faster to recreate collection, e.g.
From the command line use:
Use the "match all docs" query in a delete by query command: :
You must also commit after running the delete so, to empty the index, run the following two commands: