[DOCS-6946] Comment on: "manual/tutorial/create-an-index.txt" Created: 08/Jan/16 Updated: 03/Nov/17 Resolved: 27/Jul/16 |
|
| 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: | Won't Fix | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
MongoDB 3.2.0, MongoDB Java Driver 3.2.0 Location: https://docs.mongodb.org/manual/tutorial/create-an-index/ |
||
| Participants: | |
| Days since reply: | 7 years, 29 weeks ago |
| Description |
|
This explanation is confusing. MongoDB Java Driver 3.2.0 requires a different approach described here: Why in this article there is no any mention about «To create an index on a field or fields, pass to the createIndex method an index key specification document (org.bson.Document) that contains the fields to index and the index type for each field: new Document(<field1>, <type1>).append(<field2>, <type2>)»? It will be great if you can update this manual for the MongoDB 3.2.0 Java Driver. Otherwise the current article is useless. Thanks. |
| Comments |
| Comment by Kay Kim (Inactive) [ 27/Jul/16 ] |
|
I believe the person is looking for |