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 |
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 |
|
Tarball installations + Installer-No Services installations |
|
Procedure
-
Write the schema:
dsetool write_resource keyspace.table name=schema.xml file=schemaFile.xml
-
Post the configuration file:
dsetool write_resource keyspace.table name=solrconfig.xml file=solrconfigFile.xml
-
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
-
To verify the resources after they are posted:
For example:
dsetool read_resource keyspace.table name=ResourceFile.xml file=myPath1/myPath2/schemaFile.xml