IndexingPolicy Class
Cosmos DB indexing policy.
- Inheritance
-
azure.mgmt.cosmosdb._serialization.ModelIndexingPolicy
Constructor
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)
Keyword-Only Parameters
Name | Description |
---|---|
automatic
|
Indicates if the indexing policy is automatic. |
indexing_mode
|
str or
IndexingMode
Indicates the indexing mode. Known values are: "consistent", "lazy", and "none". Default value: consistent
|
included_paths
|
List of paths to include in the indexing. |
excluded_paths
|
List of paths to exclude from indexing. |
composite_indexes
|
List of composite path list. |
spatial_indexes
|
List of spatial specifics. |
Variables
Name | Description |
---|---|
automatic
|
Indicates if the indexing policy is automatic. |
indexing_mode
|
str or
IndexingMode
Indicates the indexing mode. Known values are: "consistent", "lazy", and "none". |
included_paths
|
List of paths to include in the indexing. |
excluded_paths
|
List of paths to exclude from indexing. |
composite_indexes
|
List of composite path list. |
spatial_indexes
|
List of spatial specifics. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python