Skip to content

[FEATURE REQ] Allow Setting Indexes in Include/Exclude Path. #13315

@neerajmangal

Description

@neerajmangal

Is your feature request related to a problem? Please describe.
With Cosmos SDK 4.01., setting up the index's includePathsDataType, IndexKind, and Precision is no longer exposed to customize. setIndexes() function is no longer public so if we require to change the default values we can't.
It seems like this is explicitly done via #11654

Is there any other way we can set `DataType, IndexKind, and Precision via SDK? Found https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/IndexingPolicy.java#L59 but this is also not exposed.

Describe the solution you'd like
expose {IncludePaths, ExcludePaths}.setIndexes() function to customize.

Describe alternatives you've considered
The alternative is to set Index's IncludePaths indexes DataType, Kind, and Precision manually in the portal.

Additional context

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Description Added
  • Expected solution specified

Metadata

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.CosmosService AttentionWorkflow: This issue is responsible by Azure service team.cosmos:v4-itemIndicates this feature will be shipped as part of V4 release traincustomer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-requestThis issue requires a new behavior in the product in order be resolved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions