I am using scrapy to scrap blogs and then store the data in mongodb. At first i got the InvalidDocument Exception. So obvious to me is that the data is not in the right encoding
I got this error when running a query
db.collection.find({'attr': {'$gte': 20}})
and some records in collection had a non-numeric value for attr.
collection
attr