Skip to content

Commit 79d2964

Browse files
committed
fix: Replace deprecated ensureIndex with createIndex
1 parent 9725374 commit 79d2964

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mongodb/example/src/test/java/example/springdata/mongodb/customer/CustomerRepositoryIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void exposesGeoSpatialFunctionality() {
129129
indexDefinition.getIndexOptions().put("min", -180);
130130
indexDefinition.getIndexOptions().put("max", 180);
131131

132-
operations.indexOps(Customer.class).ensureIndex(indexDefinition);
132+
operations.indexOps(Customer.class).createIndex(indexDefinition);
133133

134134
var ollie = new Customer("Oliver", "Gierke");
135135
ollie.setAddress(new Address(new Point(52.52548, 13.41477)));

0 commit comments

Comments
 (0)