Uploading the schema and configuration

Create a Solr index by posting solrconfig.xml and schema.xml to a DSE Search node in the DataStax Enterprise cluster.

After writing schema.xml and solrconfig.xml files, use dsetool to post them to a DSE Search node in the DataStax Enterprise cluster to create a Solr index. You can also post additional resource files.

Resource files are stored in Cassandra database, not in the file system. The schema.xml and solrconfig.xml resources are persisted in the solr_admin.solr_resources database table. You can configure the maximum resource file size or disable resource upload with the solr_resource_upload_limit_mb option in dse.yaml.

The location of the dse.yaml file depends on the type of installation:
Installer-Services /etc/dse/dse.yaml
Package installations /etc/dse/dse.yaml
Installer-No Services install_location/resources/dse/conf/dse.yaml
Tarball installations install_location/resources/dse/conf/dse.yaml

Procedure

  1. Post the schema file:
    dsetool write_resource keyspace.table name=schema.xml file=schemaFile.xml
  2. Post the configuration file:
    dsetool write_resource keyspace.table name=solrconfig.xml file=solrconfigFile.xml
  3. Post any other resources that you might need.
    $ dsetool write_resource keyspace.table name=ResourceFile.xml file=schemaFile.xml
    You can specify a path for the resource file:
    $ dsetool write_resource keyspace.table name=ResourceFile.xml file=myPath1/myPath2/schemaFile.xml
  4. To verify the resources after they are posted:
    $ dsetool read_resource keyspace.table name=ResourceFile.xml