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

wildcard search on cxx driver

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      64bit, ubuntu 11.10, cxx

      How do I do this (select person from people where name like 'john%'), on the cxx driver?

      Currently this is how I achieve my exact matches:-

      auto_ptr<mongo::DBClientCursor> cursor =
      (*conn).query(NS_INVENTORY, BSON("Name" << name))

      Thank you!

            Assignee:
            kbanker Kyle Banker
            Reporter:
            khosimorafo@yahoo.com Khosi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: