RELOAD SEARCH INDEX
Changes made using ALTER SEARCH INDEX CONFIG or ALTER SEARCH INDEX SCHEMA are marked PENDING. Use the RELOAD command to replace the active search index with the pending version. Use the CQL shell command DESCRIBE SEARCH INDEX to view pending and active search index schema and config.
Run REBUILD SEARCH INDEX after changing the schema to reindex existing data. |
Restriction: Command available only on DSE Search nodes. Running search index management commands on large datasets can take longer than the CQLSH default timeout of 10 minutes. Increase the CQLSH client timeout as required.
Synopsis
RELOAD SEARCH INDEX ON [<keyspace_name>.]<table_name> ;
Syntax legend
Syntax conventions | Description |
---|---|
UPPERCASE |
Literal keyword. |
Lowercase |
Not literal. |
|
Variable value. Replace with a 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. |
EBNF
EBNF syntax:
reloadSearchIndex ::= 'RELOAD' 'SEARCH' 'INDEX' 'ON' tableName tableName ::= (keyspace '.')? table
Railroad diagram:
Examples
The search index schema and configuration is reloaded for the wiki.solr keyspace.
RELOAD SEARCH INDEX ON wiki.solr;