Uploading the search index schema and config

After generating or changing the search index schema and configuration, use dsetool to upload to a DSE Search node to create a search index. You can also post additional resource files.

You can configure the maximum resource file size or disable resource upload with the DSE Search resource upload limit option in dse.yaml.

Using custom resources is not supported by the CQL CREATE SEARCH INDEX command.

Resource files are stored internally in the database, not in the file system. The schema and configuration resources are persisted in the solr_admin.solr_resources database table.

Where is the dse.yaml file?

The location of the dse.yaml file depends on the type of installation:

Installation Type Location

Package installations + Installer-Services installations

/etc/dse/dse.yaml

Tarball installations + Installer-No Services installations

<installation_location>/resources/dse/conf/dse.yaml

Procedure

  1. Write the schema:

    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:

    For example:

    dsetool read_resource keyspace.table name=ResourceFile.xml file=myPath1/myPath2/schemaFile.xml

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com