Why does mongodb return results in shell but not in python.
Shell:
> db.posts.find({ Body: /html/ }).count()
5524
Python code:
query = {"Body": '/html/'}
r = mo_db.posts.find(query)
print r.count()
> 0
All other queries work fine, just find() works fine. Is there another way to handle slashes?!
I also tested r'/html/' and u'/html/'.