Customizing automatic resource generation
You can customize the solrconfig and schema generation by providing a yaml-formatted file of options.
- default_query_field
The schema field to use when no field is specified in queries
- auto_soft_commit_max_time
The maximum auto soft commit time in milliseconds
- generate_docvalues_for_fieldsDefine the fields to automatically configure doc values in the generated schema. Specify '*' to add all possible fields:
or specify a comma-separated list of fields, for example:generate_docvalues_for_fields: '*' ## You can omit this parameter or not specify a value
generate_docvalues_for_fields: uuidfield, bigintfield
- index_merge_factor
The index merge factor
- index_ram_buffer_size
The index ram buffer size in megabytes
- directory_factory_class
The class name of the directory factory
- dsetype_mapping_version
The Solr/Cassandra type mapping version.
- enable_string_copy_fields
Specify to enable generation of non-stored string copy fields for non-key text fields. Text data can be tokenized or non tokenized. The enable_string_copy fields is false by default. True creates a non-stored, non-tokenized copy field, so that you can have text both ways.
default_query_field: name auto_soft_commit_max_time: 1000 generate_docvalues_for_fields: '*' enable_string_copy_fields: false
Use the dsetool command to create the core and customize the solrconfig and schema generation. Use coreOptions to specify the yaml file.
$ dsetool create_core nhanes_ks.nhanes generateResources=true coreOptions=config.yaml
You can check that DSE Search created the solrconfig and schema by reading core resources using dsetool.