Share via


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

IndexingPolicy 类

定义

表示 Azure Cosmos DB 服务中集合的索引策略配置。

public sealed class IndexingPolicy
type IndexingPolicy = class
Public NotInheritable Class IndexingPolicy
继承
IndexingPolicy

注解

索引策略可用于配置) 包含/排除 (JSON 路径的属性、索引是一致更新还是脱机 (延迟) 、自动与按文档选择加入,以及每个路径的索引的精度和类型。

https://docs.microsoft.com/azure/cosmos-db/index-policy有关如何指定索引策略的其他信息,请参阅 。

构造函数

IndexingPolicy()

为 Azure Cosmos DB 服务初始化 类的新实例 IndexingPolicy

属性

Automatic

获取或设置一个值,该值指示是否为 Azure Cosmos DB 服务中的集合启用自动索引。

CompositeIndexes

获取其他索引的复合索引

ExcludedPaths

获取包含 ExcludedPath Azure Cosmos DB 服务中的 对象的集合。

IncludedPaths

获取包含 IncludedPath Azure Cosmos DB 服务中的 对象的集合。

IndexingMode

获取或设置 Azure Cosmos DB 服务中 (一致或延迟) 的索引模式。

SpatialIndexes

要使用的空间索引定义的集合

适用于

另请参阅