Creating a Solr core

Creating a Solr core on one node automatically creates the core on other DSE Search nodes, and DSE Search stores the files on all the Cassandra nodes.

You cannot create a Solr core unless you first upload the schema and configuration files. If you are creating a CQL-based Solr core, the table must exist in Cassandra before creating the core.

Creating a Solr core

Use dsetool to create a Solr core:
$ dsetool create_core <keyspace>.<table> [<option> ...]
For command details, see dsetool create_core.
Alternatively, use the curl command to create a Solr core.
$ curl "http://localhost:8983/solr/admin/cores?action=CREATE&name=keyspace.table"

Creating a Solr core on one node automatically creates the core on other DSE Search nodes, and DSE Search stores the files on all the Cassandra nodes. Core creation is per datacenter. If multiple DSE Search datacenters are present, repeat the Solr core creation on each datacenter. See dsetool create_core for details on command options.

Note: If one or more nodes fail to create the core in distributed operations, an error message indicates the failing node or nodes. If it failed to create the core immediately, issue the create again. If it failed to create on some nodes, issue a reload for those nodes to load the newly created core.
By default, the cassandra user has full permissions on all keyspaces. If you specify a non-default user to create a Solr core, the specified user must have the necessary Cassandra permissions. When specifying a user to create a Solr core, ensure that the user has either:
  • CREATE permission on all keyspaces
  • All permissions on all keyspaces (superuser)