Search index commands
In DSE Search, a search index is an Apache Solr™ core. Each DSE Search index uses an internally stored index configuration pair (schema.xml and solrconfig.xml) that is automatically generated when the index is created.
Manage DataStax Enterprise search indexes using the following CQL commands:
-
CREATE SEARCH INDEX Generates a new search index on an existing table with default schema and config.
-
DESCRIBE SEARCH INDEX Displays the active or pending schema or config in XML format.
-
ALTER SEARCH INDEX CONFIG Modifies the search index config. After modifying, use reload to push the changes live.
-
ALTER SEARCH INDEX SCHEMA Modifies the search index schema. After modifying, use reload to push the changes live.
-
RELOAD SEARCH INDEX Loads pending changes to the index schema and config. Some changes such as adding or removing indexed fields require a rebuild.
-
REBUILD SEARCH INDEX Reconstructs the search index using the active schema and config.
-
COMMIT SEARCH INDEX Forces a reload of data into the index after data is added, modified, or removed from the corresponding CQL table.
-
DROP SEARCH INDEX Removes the search index and corresponding files.
Run search index commands only on the local node using the dsetool commands.
DSE stores the Solr search index configuration pair (schema and config) in the |
In DSE authorization-enabled environments, you must grant permission to run search index commands; see Controlling Access to Search Indexes. |