你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PurviewCatalogClient.Search(RequestContent, RequestContext) 方法

定义

使用搜索获取数据。

public virtual Azure.Response Search (Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member Search : Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.Search : Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function Search (content As RequestContent, Optional context As RequestContext = Nothing) As Response

参数

content
RequestContent

要作为请求正文发送的内容。

context
RequestContext

请求上下文,它可以基于每个调用替代请求的默认行为。

返回

例外

content 为 null。

注解

Request Body架构:

{
              keywords: string,
              offset: number,
              limit: number,
              filter: AnyObject,
              facets: [
                {
                  count: number,
                  facet: string,
                  sort: AnyObject
                }
              ],
              taxonomySetting: {
                assetTypes: [string],
                facet: SearchFacetItem
              }
            }

Response Body架构:

{
              @search.count: number,
              @search.facets: {
                assetType: [
                  {
                    count: number,
                    value: string
                  }
                ],
                classification: [SearchFacetItemValue],
                classificationCategory: [SearchFacetItemValue],
                contactId: [SearchFacetItemValue],
                fileExtension: [SearchFacetItemValue],
                label: [SearchFacetItemValue],
                term: [SearchFacetItemValue]
              },
              value: [SearchResultValue]
            }

Response Error架构:

{
              requestId: string,
              errorCode: string,
              errorMessage: string
            }

适用于