dsetool reload_core
Reloads the search index to recognize changes to schema or configuration.
Supports DSE authentication with [-l <username> -p <password>]
.
To reload the core and prevent reindexing, accept the default values |
Synopsis
dsetool reload_core <keyspace_name>.<table_name>
[coreOptions=<yamlFile> | coreOptionsInline=<key1:value1#key2:value2#...>]
[deleteAll=(true|false)]
[distributed=(true|false)]
[reindex=(true|false)]
[schema=<path>]
[solrconfig=<path>]
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. |
- schema=<path>
-
Path of the UTF-8 encoded search index schema file. Cannot be specified when
generateResources=true
.To ensure that non-indexed fields in the table are retrievable by queries, you must include those fields in the schema file. For more information, see Solr single-pass CQL queries.
- solrconfig=<path>
-
Path of the UTF-8 encoded search index configuration file. Cannot be specified when
generateResources=true
. - distributed=(true|false)
-
Whether to distribute and apply the operation to all nodes in the local datacenter.
-
True applies the operation to all nodes in the local datacenter.
-
False applies the operation only to the node it was sent to.
Distributing a re-index to an entire datacenter degrades performance severely in that datacenter.
-
- reindex=(true|false)
-
Whether to reindex the data when search indexes are auto-generated with generateResources=true. Reindexing works on a datacenter (DC) level. Reindex only once per search-enabled DC. Repeat the reindex command on other data centers as required.
Valid values:
-
true - Default. Reindexes the data. Accepts reads and keeps the current search index while the new index is building.
-
false - Does not reindex the data. You can check and customize search index resources before indexing.
-
- deleteAll=( true|false )
-
-
true - deletes the already existing index before reindexing; search results will return either no or partial data while the index is rebuilding.
-
false - does not delete the existing index, causing the reindex to happen in-place; search results will return partially incorrect results while the index is updating. Default.
During reindexing, a series of criteria routes sub-queries to the nodes most capable of handling them. See Shard routing for distributed queries.
-
Examples
To make the pending search index active:
dsetool reload_core demo.health_data coreOptionsInline="directory_factory_class:solr.EncryptedFSDirectoryFactory"
To upload the changed resource file:
dsetool reload_core demo.health_data coreOptionsInline="directory_factory_class:solr.EncryptedFSDirectoryFactory"