我有一个 Cassandra
我已启用的表 Solr
索引,使用命令dsetool create_core <keyspace>.<table> [<option> ...]
问题是如何删除这个核心?
我试过 unload
通过 HTTP Api
返回 UNLOAD unsupported!
最佳答案
更新,
unload_core 现在从 DSE 4.8 开始可用 -- DSP-1533
逐字来自 DataStax docs
Unloading a Solr core To disable full text search on a core, unload the core without removing its backing table.
To simplify Solr code unloading, use dsetool unload_core. The syntax of the command is:
$ dsetool unload_core . [ ...] where is one or more of the following options: Option Settings Default Description of default setting deleteDataDir= true or false false Retains the underlying Cassandra data. deleteResources= true or false false Retains the core configuration and schema resources. distributed= true or false true Deletes resources and data across the cluster. The distributed option governs the removal of data and resources. The Solr secondary indexes on the backing table are removed through Cassandra schema propagation even if distributed=false. Note: If one or more nodes fail to unload the core in distributed operations, an error message indicates the failing node or nodes. Issue the unload again.
关于solr - 从 Datastax Solr 中删除核心,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32457456/