Share via


IndexingPolicy 類別

Cosmos DB 索引編制原則。

繼承
azure.mgmt.cosmosdb._serialization.Model
IndexingPolicy

建構函式

IndexingPolicy(*, automatic: bool | None = None, indexing_mode: str | _models.IndexingMode = 'consistent', included_paths: List[_models.IncludedPath] | None = None, excluded_paths: List[_models.ExcludedPath] | None = None, composite_indexes: List[List[_models.CompositePath]] | None = None, spatial_indexes: List[_models.SpatialSpec] | None = None, **kwargs: Any)

變數

automatic
bool

指出索引編制原則是否為自動。

indexing_mode
strIndexingMode

表示索引模式。 已知值為:「一致」、「延遲」和「無」。

included_paths
list[IncludedPath]

要包含在索引中的路徑清單。

excluded_paths
list[ExcludedPath]

要從索引編制中排除的路徑清單。

composite_indexes
list[list[CompositePath]]

複合路徑清單。

spatial_indexes
list[SpatialSpec]

空間細節清單。