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

Partial matching on _id

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      I need to match part of an _id that was automatically generated on the server. This is for an administration tool letting the administrator specify part of an id to make things more usable for them. I don't care what the actual solution is, but there is currently no way to do this without visiting every row from a client.

      One example way would be using regex:

      find({_id: /.ab3c94./})

      Currently regexes do not work against object id.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            rogerbinns Roger Binns
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: