Obtain search facet results for managed attributes

Copper Contributor

Hello,

 

Using the catalog api, is there a way to query and obtain search facet results for a particular managed attribute (businessAttributes in the api specs)  ?

 

My query is similar to this one but I would like to add a managed attribute in the facets array of the search request.

Discovery - Query - REST API (Azure Purview) | Microsoft Learn

 

Thanks !

 

2 Replies

Hello,
I achieved it by using the filter in this way:
{
"attributeName": "<ManagedAttributeGroupName>.<ManagedAttributeName>",
"operator": "eq",
"attributeValue": "<value>"
}

Further info:
https://learn.microsoft.com/en-us/rest/api/purview/catalogdataplane/discovery/query?tabs=HTTP#discov...

Hello Alejandro,
This will only filter the Array of SearchResultValue. I need to have managed attributes in the search_facets?: SearchFacetResultValue of SearcResult. Thanks anyway.