Share via


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

ISearchIndexClient 接口

定义

可用于查询索引和上传、合并或删除文档的客户端。

public interface ISearchIndexClient : IDisposable
type ISearchIndexClient = interface
    interface IDisposable
Public Interface ISearchIndexClient
Implements IDisposable
派生
实现

属性

AcceptLanguage

响应的首选语言。

ApiVersion

客户端 API 版本。

Credentials

客户端连接到 Azure 所需的凭据。

DeserializationSettings

获取或设置 json 反序列化设置。

Documents

获取 IDocumentsOperations。

GenerateClientRequestId

是否应生成唯一的 x-ms-client-request-id。 设置为 true 时,将生成唯一的 x-ms-client-request-id 值并将其包含在每个请求中。 默认为 true。

IndexName

索引的名称。

LongRunningOperationRetryTimeout

长时间运行的操作的重试超时(以秒为单位)。 默认值为 30。

SearchCredentials

获取用于向Azure 认知搜索服务进行身份验证的凭据。 这可以是查询 API 密钥或管理 API 密钥。

SearchDnsSuffix

搜索服务的 DNS 后缀。 默认值为 search.windows.net。

SearchServiceName

搜索服务的名称。

SerializationSettings

服务的基 URI。

UseHttpGetForQueries

指示索引客户端是否应使用 HTTP GET 向Azure 认知搜索 REST API 发出搜索、建议和自动完成请求。 默认值为 false,指示将使用 HTTP POST。

方法

TargetDifferentIndex(String)
已过时.

更改此客户端的 BaseUri,以针对同一Azure 认知搜索服务中的不同索引。 此方法不是线程安全的;在调用客户端之前,必须保证没有其他线程正在使用客户端。

适用于