This document describes the syntax for Knowledge Catalog search.
Knowledge Catalog lets you discover, centrally catalog, manage, and understand your organization's data. To efficiently find specific data assets within your data catalog, you can use powerful search queries. The syntax for search queries includes:
- Simple search: How to find data assets using a single search term.
- Qualified predicates: How to refine your search using specific metadata fields like name, location, or description.
- Aspect search: How to search for entries based on their attached business and technical metadata.
- Logical operators: How to combine multiple search criteria using AND and OR to create complex queries. By understanding this syntax, you can quickly locate the data you need.
Before you begin
Understand Knowledge Catalog entry groups, entries, entry links, aspects, entry types, entry link types, and aspect types. See About metadata management in Knowledge Catalog.
Knowledge Catalog offers search that leverages AI to understand natural language queries and semantic meaning. It lets you find resources using everyday language, eliminating the need for complex syntax, while also supporting keyword matching and filters.
Use free-text search
You can find assets by entering a term or phrase without any specific syntax. Knowledge Catalog performs a broad search by matching your query against several metadata fields, including the following:
- Name, display name, or description of a resource
- Type of a resource
- Project ID
- Overview description
- Column name (or nested column name) in the schema of a resource
- Column description
- Fully qualified name
- Contacts
- Aspects
Use query syntax
For more precise searches, you can construct a query using specific syntax, including qualifiers, logical operators, and aspect searches.
Qualified predicates
You can qualify a predicate by prefixing it with a key that restricts the matching to a specific piece of metadata:
- An equal sign (
=) restricts the search to an exact match. - A colon (
:) after the key matches the predicate to either a substring or a token within the value in the search results.
Tokenization splits the stream of text into a series of tokens, with each token usually corresponding to a single word.
For example:
name:fooselects resources with names that contain thefoosubstring, such asfoo1andbarfoo.description:fooselects resources with thefootoken in the description, such asbarandfoo.location=foomatches resources in a specified location withfooas the location name.
The behavior of these qualifiers can vary slightly between search modes, as detailed in the following sections.
The predicate keys type, system, location, and description, and aspect
search (excluding has) support only the exact match (=) qualifier, not the
substring qualifier (:). For example, type=foo.
Knowledge Catalog search supports the following qualifiers:
| Qualifier | Description |
|---|---|
name:x |
Matches x as a substring of the resource ID or resource
display name. |
displayname:x |
Match x as a substring of the resource display name. |
column:x |
Matches x as a substring of the column name (or nested
column name) in the schema of the resource. |
description:x |
Matches x as a token in the resource description. |
labels:bar |
Matches BigQuery resources that have a label (with some
value) and the label key has bar as a substring. |
labels=bar |
Matches BigQuery resources that have a label (with
some value) and the label key equals bar as a string. |
labels.bar:x |
Matches x as a substring in the value of a label with
key bar attached to a BigQuery resource. |
labels.foo=bar |
Matches BigQuery resources where the key equals
foo and the key value equals bar. |
type=TYPE |
Matches resources of a specific entry type or its type alias. |
projectid:bar |
Matches resources within Google Cloud projects that match
bar as a substring in the ID. |
parent:x |
Matches x as a substring of the hierarchical path of a
resource. |
system=SYSTEM |
Matches resources from a specified system. |
location=LOCATION |
Matches resources in a specified location with an exact name.
For example, BigQuery Omni assets support this qualifier by using the
BigQuery Omni location name.
For example,
|
createtime |
Finds resources that were created within, before, or after a given date or time. For example:
Timestamp format: All timestamps must be in GMT; time zones are not supported. Partial
timestamps, hyphen ( For example:
|