Change filtering to match Cloudant query filtering