COMMIT SEARCH INDEX
Forces an update of the search index with the most recent data after executing an INSERT, UPDATE, or DELETE statement.
|
By default, changes are automatically committed every 10,000 milliseconds. To change the default setting see Change the automatic commit time. |
|
This command is available only on DSE Search nodes. Running search index management commands on large datasets can take longer than the CQL shell default timeout of 10 minutes. |
Synopsis
COMMIT SEARCH INDEX ON [<keyspace_name>.]<table_name> ;
| 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. |
Example
COMMIT SEARCH INDEX ON cycling.comments;