"location.state._id": ObjectId("4ce82937961552247900000f") }) // find all within city db.businesses.find({ "location.city._id": ObjectId("4ce82aa0d3dfaa10f8004a95") }) ! ! !
"location.state._id": ObjectId("4ce82937961552247900000f") }) // find all within city db.businesses.find({ "location.city._id": ObjectId("4ce82aa0d3dfaa10f8004a95") }) // find all within zip db.businesses.find({ "location.zip._id": ObjectId("4ce82b5ed3dfaa116b0026f0") })
and category id db.businesses.find({ "location.city._id": ObjectId("4ce82aa0d3dfaa10f8004a95"), "categories._id": ObjectId("4ce82e50d3dfaa16360004f2") })
mongo kyle: oh wow, you can replace solr with mongo? me: with some creativity kyle: seems like it’d still be hard to get just right me: it works well kyle: gotcha