CORTEX_SEARCH_SERVICES view

This view shows existing Cortex Search Services in the current or specified database.

Columns

Column NameData TypeDescription
SERVICE_CATALOGVARCHARDatabase that the service belongs to.
SERVICE_SCHEMAVARCHARSchema that the service belongs to.
SERVICE_NAMEVARCHARName of the service.
CREATEDTIMESTAMP_LTZCreation time of the service.
DEFINITIONVARCHARSQL query used to create the service.
SEARCH_COLUMNVARCHARName of the search column.
ATTRIBUTE_COLUMNSVARCHARComma-separated list of attribute columns in the service.
COLUMNSVARCHARComma-separated list of all columns included in the service.
TARGET_LAGVARCHARTarget lag for refreshing the service.
WAREHOUSEVARCHARName of the warehouse used for refreshing the service.
COMMENTVARCHARComment for this service.
SERVICE_QUERY_URLVARCHARURL for querying the service.
OWNERVARCHARRole that owns the service.
OWNER_ROLE_TYPEVARCHARType of role of the service owner (one of DATABASE_ROLE or ROLE).
DATA_TIMESTAMPTIMESTAMP_LTZTime at which the source data was checked for changes resulting in the currently serving index.
SOURCE_DATA_BYTESNUMBERCurrent size, in bytes, of the materialized source data.
SOURCE_DATA_NUM_ROWSNUMBERCurrent number of rows in the materialized source data.
INDEXING_STATEVARCHARIndexing state of the service (one of SUSPENDED or RUNNING).
INDEXING_ERRORVARCHARError encountered in the last indexing pipeline, if one exists.
SERVING_STATEVARCHARServing state of the service (one of SUSPENDED or RUNNING).
SERVING_DATA_BYTESNUMBERSize of the billable serving data, in bytes.
EMBEDDING_MODELVARCHARThe vector embedding model used by the service.
PRIMARY_KEY_COLUMNSVARCHARComma-separated list of primary key column names defined on the service. Empty if no primary key is set.

Example

SELECT * FROM SNOWFLAKE.INFORMATION_SCHEMA.CORTEX_SEARCH_SERVICES;