Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-5635

Feedback when 2D index values are out of range

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.3.0
    • Affects Version/s: 2.1.0
    • Component/s: Geo
    • Labels:
    • Environment:

      If there are invalid values when attempting to add a 2d index, the feeback has a couple of issues.

      > db.some_collection.ensureIndex(

      {geo:'2d'}

      )
      point not in interval of [ -180, 180 )

      Trivially, it is mixing a square bracket and parenthesis, but more importantly it would be nice to have some indication as to which record is causing the problem, by showing the offending value and _id (for instance). It isn't hard to issue queries to track this down, but some information could be helpful.

            Assignee:
            Unassigned Unassigned
            Reporter:
            crudson Doug Hudson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: