[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/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12
Referrer: https://www.google.com/
Screen Resolution: 1440 x 900
repo: docs
source: 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

Generated at Thu Feb 08 07:51:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.