Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-6946

Comment on: "manual/tutorial/create-an-index.txt"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • None

    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.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 29 weeks ago