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 Changing the autocommit time. |
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
COMMIT 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:
commitSearchIndex ::= 'COMMIT' 'SEARCH' 'INDEX' 'ON' tableName tableName ::= (keyspace '.')? table
Examples
COMMIT SEARCH INDEX ON cycling.comments;