如何删除solr和hbase中的所有数据 [英] How to delete all data from solr and hbase
问题描述
如何通过命令删除 solr
中的所有数据?我们使用 solr
和 lily
和 hbase
。 p>
如何从hbase和solr中删除数据?
http://lucene.apache.org/solr/4_10_0/tutorial.html#Deleting+Data
如果你想清理Solr索引 -
你可以激活http url -
http:// host:port / solr / [core name] /update?stream.body=<delete><query> *:*< / query>< / delete>& commit = true
[核心名称]
以及要删除的核心名称)。如果发布数据xml数据,请使用此:
< delete>< query> *:*< / query><<<< ; /删除>
请确保您使用 commit = true
来提交更改
尽管清除hbase数据并不多。
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
If you want to clean up Solr index -
you can fire http url -
http://host:port/solr/[core name]/update?stream.body=<delete><query>*:*</query></delete>&commit=true
(replace [core name]
with the name of the core you want to delete from). Or use this if posting data xml data:
<delete><query>*:*</query></delete>
Be sure you use commit=true
to commit the changes
Don't have much idea with clearing hbase data though.
这篇关于如何删除solr和hbase中的所有数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!