Annotation Type CosmosIndexingPolicy
Annotation for cosmos indexing policy.
Using this annotation will NOT overwrite the cosmos indexing policy currently in Azure Portal by default. See `overwritePolicy()` for more details.
To prevent overwriting the Indexing Policy defined on Azure Portal, Indexing Policy defined on the SDK through this annotation should be identical or set overwritePolicy flag to false.
-
Element Details
-
overwritePolicy
boolean overwritePolicyWhether or not to overwrite the indexing policy specified in the Portal.- Returns:
- default as false
- Default:
- false
-
automatic
boolean automaticTo set automatic indexing- Returns:
- default as true
- Default:
- true
-
mode
IndexingMode modeTo set indexing mode- Returns:
- IndexingMode
- Default:
- CONSISTENT
-
includePaths
String[] includePathsTo include paths- Returns:
- String[]
- Default:
- {}
-
excludePaths
String[] excludePathsTo exclude paths- Returns:
- String[]
- Default:
- {}
-
compositeIndexes
CompositeIndex[] compositeIndexesComposite Indexes- Returns:
- CompositeIndexDefinition[]
- Default:
- {}
-