[JAVA-1163] No createIndex signature exists to match keyspec, name, unique Created: 08/Apr/14  Updated: 30/Jan/15  Resolved: 19/Aug/14

Status: Closed
Project: Java Driver
Component/s: API, Command Operations
Affects Version/s: 2.12.0, 3.0.0
Fix Version/s: 2.13.0, 3.0.0

Type: Improvement Priority: Major - P3
Reporter: John Morales Assignee: Ross Lawley
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends

 Description   

In migrating from 2.11.2 to 2.12.0, we've encountered a multitude of cases where we were using:

dbCollection.ensureIndex(new BasicDBObject("foo", 1), "someName", true);

Doing the find/replace 's/ensureIndex/createIndex/g' wouldn't be bad, but not having a matching 3-arg createIndex(spec, name, unique) makes migrating more manual and error prone.



 Comments   
Comment by Githook User [ 30/Jan/15 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Added createIndex signatures to match the ensureIndex

To aid migration from the deprecated ensureIndex methods
JAVA-1163
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/34d808a9f9885f1f901ddf7722f98e2626ab89ef

Comment by Jeffrey Yemin [ 29/Jan/15 ]

2.13.0 has been released. Closing issue.

Comment by Githook User [ 19/Aug/14 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Added createIndex signatures to match the ensureIndex

To aid migration from the deprecated ensureIndex methods
JAVA-1163
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/34d808a9f9885f1f901ddf7722f98e2626ab89ef

Comment by Githook User [ 19/Aug/14 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Added createIndex signatures to match the ensureIndex

To aid migration from the deprecated ensureIndex methods
JAVA-1163
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/ab44711e3325ce977bc60b880372effa4757e21a

Generated at Thu Feb 08 08:53:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.