[DOCS-6206] Comment on: "manual/reference/method/db.collection.ensureIndex.txt" Created: 15/Sep/15 Updated: 03/Nov/17 Resolved: 15/Sep/15 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 01112017-cleanup |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Docs Collector User (Inactive) | Assignee: | Kay Kim (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Location: http://docs.mongodb.org/v3.0/reference/method/db.collection.ensureIndex/ |
||
| Participants: | |
| Days since reply: | 8 years, 22 weeks, 1 day ago |
| Description |
|
Needs an example |
| Comments |
| Comment by Kay Kim (Inactive) [ 15/Sep/15 ] |
|
In 3.0, the method has been deprecated. As such the examples have been removed to encourage the use of createIndex() method instead. The manual for earlier versions of MongoDB, where ensureIndex is not deprecated, has examples. For example, see http://docs.mongodb.org/v2.6/reference/method/db.collection.ensureIndex/#examples |