Feedback when 2D index values are out of range

XMLWordPrintableJSON

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

      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
            Reporter:
            Doug Hudson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: