added support for querying cloudant search