Search the Azure Purview Data Catalog
Data discovery is the first step for a data analytics or data governance workload for data consumers. Data discovery can be time consuming because you may not know where to find the data that you want. Even after finding the data, you may have doubts about whether or not you can trust the data and take a dependency on it.
The goal of search in Azure Purview is to speed up the process of data discovery to quickly find the data that matters. This article outlines how to search the Azure Purview data catalog to quickly find the data you are looking for.
Search the catalog for assets
In Azure Purview, the search bar is located at the top of the Purview studio UX.
When you click on the search bar, you can see your recent search history and recently accessed assets. Select "View all" to see all of the recently viewed assets.
Enter in keywords that help identify your asset such as its name, data type, classifications, and glossary terms. As you enter in keywords relating to your desired asset, Azure Purview displays suggestions on what to search and potential asset matches. To complete your search, click on "View search results" or press "Enter".
The search results page shows a list of assets that match the keywords provided in order of relevance. There are various factors that can affect the relevance score of an asset. You can filter down the list more by selecting specific data stores, classifications, contacts, labels, and glossary terms that apply to the asset you are looking for.
Click on your desired asset to view the asset details page where you can view properties including schema, lineage, and asset owners.
Search query syntax
All search queries consist of keywords and operators. A keyword is a something that would be part of an asset's properties. Potential keywords can be a classification, glossary term, asset description, or an asset name. A keyword can be just a part of the property you are looking to match to. Use keywords and the operators listed below to ensure Azure Purview returns the assets you are looking for.
Below are the operators that can be used to compose a search query. Operators can be combined as many times as need in a single query.
|OR||Specifies that an asset must have at least one of the two keywords. Must be in all caps. A white space is also an OR operator.||The query
|AND||Specifies that an asset must have both keywords. Must be in all caps||The query
|NOT||Specifies that an asset can't contain the keyword to the right of the NOT clause||The query
|()||Groups a set of keywords and operators together. When combining multiple operators, parenthesis specify the order of operations.||The query
|""||Specifies exact content in a phrase that the query must match to.||The query
|*||A wildcard that matches on one to many characters. Can't be the first character in a keyword.||The query
|?||A wildcard that matches on a single character. Can't be the first character in a keyword||The query
Always specify Boolean operators (AND, OR, NOT) in all caps. Otherwise, case doesn't matter, nor do extra spaces.