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 |
See Reloading the search index for details.
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. |
|
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.
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.
-
false: Applies the operation only to the node it was sent to. For
dsetool create_core, this works only whenrecovery=true. -
true (default): Applies the operation to all nodes in the local datacenter.
Distributing a re-index to an entire datacenter degrades performance severely in that datacenter.
Even with
distributed=true, reindexing is limited to the single datacenter where you run the command. You must reindex any other search-enabled datacenters separately. -
- reindex=(true|false)
-
Whether to reindex the data when search indexes are auto-generated with
generateResources=true.-
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.
Reindexing works at the datacenter (DC) level. It runs only in the DC where you run the command, even when
distributed=true. Other search-enabled DCs are not reindexed.For a cluster with more than one search DC, run
dsetool reload_core <keyspace_name>.<table_name> reindex=truein each of the other search DCs. -
deleteAll(true|false)-
-
true - Deletes the already existing index before reindexing; search results return either no or partial data while the index is rebuilding.
-
false (default) - Does not delete the existing index, causing the reindex to happen in-place. Therefore, search results yield partially incorrect results while the index is updating.
-
During reindexing, a series of criteria directs 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"