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
.
mvn clean package
mvn exec:java -Dexec.mainClass="com.example.demo.App" -Dexec.args="<cosmos_host> <cosmos_master_key>"
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.