fix search on cloudant