IndexingPolicy Klasse

Cosmos DB-Indizierungsrichtlinie.

Vererbung
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)

Variablen

automatic
bool

Gibt an, ob die Indizierungsrichtlinie automatisch erfolgt.

indexing_mode
str oder IndexingMode

Gibt den Indizierungsmodus an. Bekannte Werte sind: "konsistent", "lazy" und "none".

included_paths
list[IncludedPath]

Liste der Pfade, die in die Indizierung einbezogen werden sollen.

excluded_paths
list[ExcludedPath]

Liste der Pfade, die von der Indizierung ausgeschlossen werden sollen.

composite_indexes
list[list[CompositePath]]

Liste der zusammengesetzten Pfadliste.

spatial_indexes
list[SpatialSpec]

Liste der räumlichen Besonderheiten.