dsetool get_core_config
Displays the XML for the specified search index config.
Supports DSE authentication with [-l <username> -p <password>]
.
Restriction: Command is supported only on nodes with DSE Search workloads.
Synopsis
dsetool get_core_config <keyspace_name>.<table_name> [current=true|false]
Syntax conventions | Description |
---|---|
UPPERCASE |
Literal keyword. |
Lowercase |
Not literal. |
<`Italics>` |
Variable value. Replace with a valid option or user-defined value. |
|
Optional.
Square brackets ( |
|
Group.
Parentheses ( |
|
Or.
A vertical bar ( |
|
Repeatable.
An ellipsis ( |
|
Single quotation ( |
|
Map collection.
Braces ( |
|
Set, list, map, or tuple.
Angle brackets ( |
|
End CQL statement.
A semicolon ( |
|
Separate the command line options from the command arguments with two hyphens ( |
|
Search CQL only: Single quotation marks ( |
|
Search CQL only: Identify the entity and literal value to overwrite the XML element in the schema and solrconfig files. |
- keyspace_name.table_name
-
Required. The keyspace and table names of the search index. Keyspace and table names are case-sensitive. Enclose names that contain uppercase in double quotation marks.
- current=true|false
-
Optionally specify to view the current (active) configuration.
-
true - Returns the active live search index config.
-
false - Default. Returns the pending (latest uploaded) search index configuration.
-
Examples
The following examples view the search index config for the demo keyspace and health_data table.
To view the pending (latest uploaded) configuration:
dsetool get_core_config demo.health_data
The XML for the auto-generated configuration is displayed:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<config>
<abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
<luceneMatchVersion>LUCENE_6_0_0</luceneMatchVersion>
<dseTypeMappingVersion>2</dseTypeMappingVersion>
<directoryFactory class="solr.StandardDirectoryFactory" name="DirectoryFactory"/>
<indexConfig>
<rt>false</rt>
<rtOffheapPostings>true</rtOffheapPostings>
<useCompoundFile>false</useCompoundFile>
<ramBufferSizeMB>512</ramBufferSizeMB>
...
</requestHandler>
<admin>
<defaultQuery>*:*</defaultQuery>
</admin>
</config>
To view the pending (latest uploaded) search index configuration:
dsetool get_core_config demo.health_data current=true
To save the XML output to a file:
dsetool get_core_config demo.health_data > /Users/maryjoe/Documents/search/health_data_config.xml
The health_data_config.xml file is created.