IndexingPolicy Kelas

Kebijakan pengindeksan Cosmos DB.

Warisan
azure.mgmt.cosmosdb._serialization.Model
IndexingPolicy

Konstruktor

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)

Variabel

automatic
bool

Menunjukkan apakah kebijakan pengindeksan bersifat otomatis.

indexing_mode
str atau IndexingMode

Menunjukkan mode pengindeksan. Nilai yang diketahui adalah: "konsisten", "malas", dan "tidak ada".

included_paths
list[IncludedPath]

Daftar jalur yang akan disertakan dalam pengindeksan.

excluded_paths
list[ExcludedPath]

Daftar jalur yang akan dikecualikan dari pengindeksan.

composite_indexes
list[list[CompositePath]]

Daftar daftar jalur komposit.

spatial_indexes
list[SpatialSpec]

Daftar spesifik spasial.