从Datastax Solr中删除核心 [英] Remove core from Datastax Solr

查看:593
本文介绍了从Datastax Solr中删除核心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Cassandra 表,我已启用 Solr 索引,使用命令

I have a Cassandra table for which I have enabled Solr indexing, using command

dsetool create_core< keyspace>。< table> [< option> ...]

dsetool create_core <keyspace>.<table> [<option> ...]

问题是如何删除此核心?

Question is how to delete this core?

已通过通过 HTTP Api 尝试卸载 UNLOAD不支持!

推荐答案

更新,

unload_core现在可用于DSE 4.8 - DSP-1533

unload_core is now avaliable as of DSE 4.8 -- DSP-1533

来自 DataStax文档的详细信息


卸载Solr核心要禁用核心上的全文本搜索,请卸载
核心,而不删除其支持表。

Unloading a Solr core To disable full text search on a core, unload the core without removing its backing table.

为了简化Solr代码卸载,使用dsetool unload_core。命令的语法
是:

To simplify Solr code unloading, use dsetool unload_core. The syntax of the command is:

$ dsetool unload_core。 [...]其中
是以下一个或多个选项:
选项设置默认缺省设置描述
deleteDataDir = true或false false保留底层Cassandra
数据。 deleteResources = true或false false保留核心
配置和模式资源。 distributed = true或
false true删除集群中的资源和数据。
分布式选项控制数据和资源的删除。通过Cassandra
模式传播,即使distributed = false,也会删除支持表上的Solr
二级索引。注意:如果一个或多个
节点无法在分布式操作中卸载核心,则错误
消息指示出现故障的节点。再次发出卸载。

$ 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.

这篇关于从Datastax Solr中删除核心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆