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
Solr I am not sure but you can delete all the data from hbase using truncate command like below:
It will delete all row-keys from hbase table.
If you want to delete all of the data in Solr via SolrJ do something like this.
If you want to delete all of the data in HBase do something like this.
I made a JavaScript bookmark which adds the delete link in Solr Admin UI
The curl examples above all failed for me when I ran them from a cygwin terminal. There were errors like this when i ran the script example.
I needed to use the delete in a loop on core names to wipe them all out in a project.
This query below worked for me in the Cygwin terminal script.
This one line made the data go away and the change persisted.
I've used this query to delete all my records.
If you're using Cloudera 5.x, Here in this documentation is mentioned that Lily maintains the Real time updations and deletions also.
Configuring the Lily HBase NRT Indexer Service for Use with Cloudera Search
Not sure if
truncate 'hTable'
is also supported in the same.Else you create a Trigger or Service to clear up your data from both Solr and HBase on a particular Event or anything.