Search for workspace objects

This article describes how to search for tables, notebooks, queries, dashboards, alerts, files, folders, libraries, jobs, repos, partners, and Marketplace listings in your Databricks workspace.

Tables must be registered in Unity Catalog to appear in search results.

Note

The search behavior described in this section is not supported for non-E2 workspaces. In those workspaces, you can click Search Icon Search in the sidebar and type a search string in the Search Workspace field. As you type, objects whose name contains the search string are listed. Click a name from the list to open that item in the workspace.

In workspaces that use customer-managed keys for encryption, notebook contents and query contents are not available in search.

Search results page

The full-page search experience gives you more space to see results, more metadata for your objects, and more filters to narrow down your results.

To filter search results by object type, object owner, or last modified date on the Search results page, do the following:

  1. Click the Search field in the top bar of the Databricks workspace or use the keyboard shortcut Command-P, and then press Enter.

    The Search results page opens.

  2. Enter your search criteria.

  3. Select an item from the list.

You can search by text string, by object type, or both. After you type your search criteria and press Enter, the system searches the names of all queries, dashboards, alerts, files, folders, notebooks, libraries, repos, partners, and Marketplace listings in the workspace that you have access to. If your workspace is enabled for Unity Catalog, the system also searches table names, table comments, column names, and column comments.

Search by text string

To search for a text string, type the string into the search field and then press Enter. The system searches the names of all objects in the workspace that you have access to. It also searches text in notebook commands, but not in non-notebook files.

You can place quotation marks around your search entry to narrow search results to only documents that contain your exact phrase.

Exact match search supports the following:

  • Basic quotation marks (for example, "spark.sql(")

  • Escaped quotation marks (for example, "spark.sql(\"select")

Exact match search doesn’t support the following:

  • With quotation marks and without quotation marks (for example, "spark.sql" partition)

  • Multiple quotation marks (for example, "spark.sql" "partition")

Limit search to a specific object type

You can search for items by type (such as files, folders, notebooks, libraries, tables, or repos) by clicking the object type on the Search results page, either from the Type drop-down list or from the tabs on the right side of the page. A text string is not required. If you leave the text field blank and then press Enter, the system searches for all objects of that type. Click a name from the list to open that item in the workspace. You can also use dropdown menus to further narrow search results for items of a specific type, such as by owner or last-modified date.

You can also specify filters in your search query in the search bar at the top of the UI. For example, you can include the following in your search query to search for tables you own: type:table owner:me. To learn more about how to specify your filters via syntax, apply filters on the Search results page and see how the query in the search bar automatically updates.

Popularity

Search uses popularity signals based on how often other users in your workspace are interacting with specific tables to improve how tables are ranked.

Without popularity boosting, you would have to query the tables returned in the search results to know which is the authoritative table. With popularity boosting, the most popular table is ranked higher so you don’t have to guess which is the correct one. The popularity indicator Popularity indicator icon next to the table name in the search results reflects object ranking. You can also sort search results by popularity.

Knowledge cards

When search can identify what you’re looking for with high confidence, the top search result turns into a knowledge card. A knowledge card provides additional object metadata. Knowledge cards are supported for Unity Catalog managed tables.

Example knowledge card

Search tables and models in Unity Catalog-enabled workspaces

In workspaces enabled for Unity Catalog, you can search for tables and models registered in Unity Catalog. You can search on any of the following:

  • Table or model names.

  • Table or model comments.

  • Table column names.

  • Table column comments.

You can filter search results by parent catalog and database (schema) on the Search results page.

You can also sort the results by the table’s popularity.

Search results don’t include:

  • Tables and models that you don’t have permission to see.

    In other words, for a table or model to appear in your search results, you must have at least the SELECT privilege on that table or EXECUTE privilege on the model, the USE SCHEMA privilege on its parent schema, and the USE CATALOG privilege on its parent catalog. Metastore admins have those privileges by default. All other users must be granted those privileges. See Unity Catalog privileges and securable objects.

  • Tables in the legacy Hive metastore (that is, in the hive_metastore catalog).

    To upgrade these tables to Unity Catalog and make them available for search, follow the instructions in Upgrade tables and views to Unity Catalog.

  • Models in the workspace model registry.

    To upgrade ML workflows to create models in Unity Catalog, see Upgrade ML workflows to target models in Unity Catalog.