Skip to content

qa-denis-huber/cosmosdb-indexing-policy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Azure Cosmos DB Indexing Policy Example

Minimal example for creating a collection with an Indexing Policy. It produces different results when using com.microsoft.azure:azure-cosmosdb:2.4.4 and com.microsoft.azure:azure-cosmosdb:2.3.1.

Build

mvn clean package

Run

mvn exec:java -Dexec.mainClass="com.example.demo.App" -Dexec.args="<cosmos_host> <cosmos_master_key>"

Change Azure Cosmos DB client

Replace dependency in pom.xml from

<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-cosmosdb</artifactId>
    <version>2.4.4</version>
</dependency>

to

<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-cosmosdb</artifactId>
    <version>2.3.1</version>
</dependency>

or vice versa.

About

Minimal example for index policy in Azure Cosmos DB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages