Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
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
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
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.