Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2628

2dsphereIndexVersion only allows versions 1 and 2 despite the default being 3 since mongodb v.3.2

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.6.0
    • Affects Version/s: None
    • Component/s: Query Operations
    • None

      2dSphereIndexVersion is 3 by default since mongodb v.3.2. The Java driver throws an IllegalArgumentException if the version is not 1 or 2, thus currently not supporting this type of index for mongodb versions 3.2+.

      https://github.com/mongodb/mongo-java-driver/blob/master/driver-core/src/main/com/mongodb/bulk/IndexRequest.java#L326

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            isabel.peters@mongodb.com Isabel Peters
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: