DESCRIBE CORTEX SEARCH SERVICE

Describes the properties of a Cortex Search service.

DESCRIBE can be abbreviated to DESC.

Syntax

{ DESC | DESCRIBE } CORTEX SEARCH SERVICE <name>;

Parameters

name

Specifies the identifier for the Cortex Search service.

If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.

For more information, see Identifier requirements.

Output

The command output provides the Cortex Search service properties and metadata in the following columns:

ColumnData TypeDescription
nameTEXTName of the service.
database_nameTEXTThe database in which the service resides.
schema_nameTEXTThe schema in which the service resides.
target_lagTEXTThe maximum amount of time that the service’s content should lag behind updates to the base tables.
warehouseTEXTThe warehouse used for service refreshes.
search_columnTEXTName of the search column.
attribute_columnsTEXTComma-separated list of attribute columns in the service.
columnsTEXTComma-separated list of columns in the service.
definitionTEXTSQL query used to create the service.
commentTEXTAny comments associated with the service.
service_query_urlTEXTURL for querying the service.
source_data_num_rowsNUMBERCurrent number of rows in the materialized source data.
indexing_stateTEXTIndexing state of the service; one of SUSPENDED or RUNNING.
indexing_errorTEXTError encountered in the last indexing pipeline, if one exists.
serving_stateTEXTServing state of the Cortex Search Service; one of SUSPENDED or RUNNING.
created_onTIMESTAMP_LTZCreation time of the Cortex Search Service.
data_timestampTIMESTAMP_LTZTime at which the source data was checked for changes resulting in the currently serving index.
embedding_modelTEXTThe vector embedding model used by the service.
primary_key_columnsTEXTComma-separated list of primary key column names defined on the service. Empty if no primary key is set.
scoring_profile_countNUMBERThe number of named scoring profiles defined in the service.
full_index_build_interval_daysNUMBERThe target interval, in days, between full index rebuilds. Only applicable to services with primary keys defined. NULL if not set.

Usage notes

  • To post-process the output of this command, you can use the pipe operator (->>) or the RESULT_SCAN function. Both constructs treat the output as a result set that you can query.

    For example, you can use the pipe operator or RESULT_SCAN function to select specific columns from the SHOW command output or filter the rows.

    When you refer to the output columns, use double-quoted identifiers for the column names. For example, to select the output column type, specify SELECT "type".

    You must use double-quoted identifiers because the output column names for SHOW commands are in lowercase. The double quotes ensure that the column names in the SELECT list or WHERE clause match the column names in the SHOW command output that was scanned.

Examples

The following example describes the Cortex Search service named mysvc:

DESCRIBE CORTEX SEARCH SERVICE mysvc;