How use sql \"like\" in PyMongo?
>>> db.houses.find().count() 11616 >>> db.houses.find({\"hid\":u\"16999\"}).count() 1 >>> db.hous
pymongo doesn't support regex literals, you have to use the '$regex' predicate:
db.houses.find({"hid":{"$regex": u"9"}})