DESCRIBE SEARCH INDEX
Shows the definition of specified search index in XML format.
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
DESCRIBE ( PENDING | ACTIVE ) SEARCH INDEX ( SCHEMA | CONFIG ) 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:
describeSearchIndex ::= 'DESCRIBE' ( 'PENDING' | 'ACTIVE' ) 'SEARCH' 'INDEX’ 'ON' tableName tableName ::= (keyspace '.')? Table
Railroad diagram:
- ACTIVE
-
Index configuration resources that are currently applied.
- PENDING
-
Index configuration resources that pending but not yet applied.
- SCHEMA
-
Show the fields to index in Solr and types associated with them. These fields map to database columns.
- CONFIG
-
Show the configuration information for the index.
- keyspace_name.table_name
-
Identifies the table of the search index; keyspace name is required when the table is not in the active keyspace.
Examples
Show the active index configuration for wiki.solr:
DESCRIBE ACTIVE SEARCH INDEX CONFIG ON wiki.solr;
The returned results are in XML.
Show the pending index schema for wiki.solr:
DESCRIBE PENDING SEARCH INDEX SCHEMA ON wiki.solr;