[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/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2612.0 Safari/537.36
Referrer: https://www.google.co.il/
Screen Resolution: 1920 x 1200
repo: docs
source: 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:
https://docs.mongodb.org/getting-started/java/indexes/

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
http://mongodb.github.io/mongo-java-driver/

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