Search code examples
cassandrasolr

Remove core from Datastax Solr


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

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

Question is how to delete this core?

I have tried unload via HTTP Api which returned UNLOAD unsupported!


Solution

  • Update,

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

    Verbatim from the 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.