implemented pretty-good AND search to compensate for mongo limitation